I guess it should be reversed though. "foo.defined ? foo : bar;"
ianmcorvidae
yeah
yeah, it supports it looks like
Freso
What happens if you `shift` and there are no more arguments?
(Back in Perl now. :))
ianmcorvidae
I think you get undef
but it might crash on you
you might appreciate Devel::REPL :P
(install it, re.pl provides a perl repl)
yeah, you get undef looks like
Freso
What's "a perl repl"?
ianmcorvidae
do you know what a repl is?
because a 'perl repl' is a repl for perl :P
Freso
No. :)
ianmcorvidae
ah
read-eval-print loop
Freso
If I knew, I doubt I'd've asked.
Ah.
ianmcorvidae
slightly more precise term for an interactive shell for a language, but
amusingly, in common lisp, you can actually implement a (poor) one with (loop(print(eval(read))) :P
Freso
:)
ianmcorvidae
anyway, yeah, Devel::REPL gives you a nice way to test things like "what happens if you shift an empty list"
Freso
The TT docs don't seem to note how you can pass multiple variables to a FILTER. Or that it's only able to take one argument.
ianmcorvidae|alt joined the channel
ianmcorvidae|alt
hm
stupid connection
flamingspinach joined the channel
ianmcorvidae
anyway as I was saying, multiple variables you'd just pass separately
e.g. var1 | filter + var2 | filter
or such
and if you want to pass multiple things to a given thing, you probably want a macro, not a filter
if it must be done in perl, decompose it to something that can take one argument
Freso
Yeah. I was hoping I wouldn't have to fall back on regexes.
Hm. But perhaps I don't.
CatCat joined the channel
ianmcorvidae
as before, it might help if you explain what you're trying to do :P
Freso
\o/
ianmcorvidae: Where'd the fun be in that?
ianmcorvidae
it'd be less obnoxious than the long stream of questions :P but other than that
warp
>_<
mb-chat-logger joined the channel
unrelated: swagger isn't looking very promising.
ianmcorvidae
ah :/
warp
mostly due to the interplay between 1) it's a spec with many implementations 2) the spec is not flexible/expressive enough to describe our API
ianmcorvidae
also unrelated: my head feeling like it's slightly overstuffed with cotton balls is not helping me get work done :/
heh
the ?inc thing isn't really that uncommon (under different names, of course), so I'm sort of surprised that's posing so much trouble
warp
so i/o docs looks more promising, there is no spec seperate from the implementation, so it's easy to mess with it and get some real work done :)
ianmcorvidae
heh, yeah
hawke_1 joined the channel
Prophet5_ joined the channel
warp
ianmcorvidae: cotton balls does not sound fun.
Freso
ianmcorvidae: Is https://pastee.org/ttmen because of bad/lacking configuration on my part, something missing on rika, or a genuine code bug?
ianmcorvidae
yeah, my body is showing remarkable persistence in failing to get over this illness
warp
warp has changed the topic to: tropical week | http://musicbrainz.org/#devel | agenda: reviews, MBS-2021 (DR/hawke), MBS-5035 (various, ian can talk about it), caa (warp)
ianmcorvidae
Freso: rika's static DB hasn't been updated for the schema change, so probably that
Freso
ianmcorvidae: Okay.
ianmcorvidae
guess I should fix that :)
Freso
Does anyone know of a user profile of a deleted user I can see? Or is it even possible to see user profiles of deleted users?
ianmcorvidae has changed the topic to: tropical week | http://musicbrainz.org/#devel | agenda: reviews, MBS-2021 (DR/hawke), MBS-5035 (various, ian can talk about it), caa (warp)
kepstin-work notes that on http://people.scs.carleton.ca/~cwalton3/temp/mbmockups/ajax/?artist=cd4f5ac3-5e0e-45a0-ae01-32c3cf117071 he is doing no language detection whatsoever, and is just using the first wikipedia link in the webservice response :/
kepstin-work
i should fix that...
ianmcorvidae
apparently it's completely failing to actually sort the list
bah
hawke_1 joined the channel
Freso
ianmcorvidae: Can't you map it to $lang => $lang.wp.org/... falling back to looking up $lang against $random.wp.org falling back to using $random.wp.org?
ianmcorvidae
that's largely what it does, yes
when I do the sorting correctly :P
Freso
Well... okay then. :)
(That was also something like that I'd imagined to do for the Bottle.)
ianmcorvidae
yeah; what it does is looks at interface language, if it's set chooses that as the "wanted language", otherwise en