!zghijEASpYQWYFzriI:nixos.org

Hydra

396 Members
112 Servers

Load older messages


SenderMessageTime
7 Sep 2021
@janne.hess:helsinki-systems.dedas_j isn't it enough to just my (a, b) = @_? 15:17:21
@janne.hess:helsinki-systems.dedas_jThat should warn when a variable is not defined or am I wrong here?15:17:36
@grahamc:nixos.org@grahamc:nixos.orglmao that is a top tier perl troll15:17:47
@janne.hess:helsinki-systems.dedas_jhuh? I really don't know any better :D15:18:00
@grahamc:nixos.org@grahamc:nixos.orgwell for one you can't use $a and $b15:18:10
@grahamc:nixos.org@grahamc:nixos.orgtwo it'll just undef all the rest I think15:18:35
@janne.hess:helsinki-systems.dedas_joh wow15:18:39
@sternenseemann:systemli.orgsterniif you call that function with just one arg b is just undef is the problem15:18:45
@sternenseemann:systemli.orgsterniat least you can't do $foo if it was never declared15:19:03
@sternenseemann:systemli.orgsterni and virtually every function will do something half reasonable with undef so it ends up failing in a completely different place usually 15:19:29
@grahamc:nixos.org@grahamc:nixos.orghttps://github.com/NixOS/hydra/pull/100415:19:36
@grahamc:nixos.org@grahamc:nixos.orgyou can define prototypes15:21:25
@grahamc:nixos.org@grahamc:nixos.org to say what arguments it requires and vaguely what type it is expecting, but you can't do this for -> called subs 15:22:39
@sternenseemann:systemli.orgsterniso that's 99% of hydra15:30:42
@grahamc:nixos.org@grahamc:nixos.orgyup15:31:03
@sternenseemann:systemli.orgsterniunfortunately I think using the “oop” style of Perl is the only maintainable way 15:35:42
@sternenseemann:systemli.orgsternisince without enforcing an interface it is probably really hard to keep data structures consistent15:36:06
@cjbayliss:matrix.orgcjbayliss (they/them) joined the room.22:13:05
8 Sep 2021
@mbprtpmnr:matrix.orgmbprtpmnr joined the room.13:06:01
@lukegb:zxcvbnm.ninjalukegb (he/him)one of these days I'll fix the JS bug in the build dependencies tab19:28:09
@lukegb:zxcvbnm.ninjalukegb (he/him)(it's been broken since the change to load tab content dynamically, I think)19:28:21
@grahamc:nixos.org@grahamc:nixos.orgwhat is that bug?19:52:00
@lukegb:zxcvbnm.ninjalukegb (he/him)the tree is supposed to collapse19:56:37
@lukegb:zxcvbnm.ninjalukegb (he/him)but it doesn't, because the JS only runs when the page loads and not when the tab loads19:56:47
@janne.hess:helsinki-systems.dedas_jwdym by collapse?19:58:00
@janne.hess:helsinki-systems.dedas_jimage.png
Download image.png
19:58:13
@lukegb:zxcvbnm.ninjalukegb (he/him)as in, it's not supposed to show the entire tree at once :P19:58:24
@janne.hess:helsinki-systems.dedas_jfor me it looks normal with the tree fully expanded and no way to collapse anything19:58:32
@janne.hess:helsinki-systems.dedas_jDid it ever do something else?19:58:37
@lukegb:zxcvbnm.ninjalukegb (he/him)right19:58:37

Show newer messages


Back to Room ListRoom Version: 6