andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
rajivr has joined #nix-lang
ris has quit [Ping timeout: 264 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
ris has joined #nix-lang
__monty__ has joined #nix-lang
<puck>
> let getArg = f: let inherit (builtins) match toXML elemAt; a = match "<\\?xml version='1\\.0' encoding='utf-8'\\?>\n<expr>\n <function>\n <(var|attrs)
<puck>
pat (ellipsis=\"1\" )?name=\"([^\"]*)\"( /)?>.* </function>\n</expr>\n" (toXML f); in if a == null then null else elemAt a 2; in getArg ({a, b}@c: a)
<{^_^}>
error: syntax error, unexpected $end, expecting '"', at (string):489:71
<puck>
oh thanks paste
<puck>
> let getArg = f: let inherit (builtins) match toXML elemAt; a = match "<\\?xml version='1\\.0' encoding='utf-8'\\?>\n<expr>\n <function>\n <(var|attrs)pat (ellipsis=\"1\" )?name=\"([^\"]*)\"( /)?>.* </function>\n</expr>\n" (toXML f); in if a == null then null else elemAt a 2; in getArg ({a, b}@c: a)
<{^_^}>
"c"
<infinisil>
puck: Lol nice
<puck>
i can't believe this is the only way to do this
<puck>
it's prooobably a sign i should try not donig this but also
<puck>
when have i ever listened to that :p
<sterni>
functionArgs works worse on builtins than toXML
<sterni>
ironic
<puck>
eh, it's not the greatest behavior either way
<puck>
and toXML is probably too lenient
<sterni>
yep should probably throw like toJSON
rajivr has quit [Quit: Connection closed for inactivity]