#clojure logs

2008-03-14

14:26ChouserThis should be legal, right? (defn f [a & [b & c]] (when nil (recur a b c)))
14:26ChouserI get: Mismatched argument count to recur, expected: 2 args, got: 3
14:36Chouserlooks like recur wants the "rest" arg passed in as an actual seq?
14:41rhickeyyes, recur must match actual parameter count, which is 2
17:22rhickeycgrand: thanks for the details on LNR
17:24rhickeyI'm thinking about changing the Repl purge-on-error to:
17:25rhickeywhile(rdr.ready()) rdr.readLine();
17:25rhickeybut don't have an WinXP box to try it on
17:34Chouserheh. no destructuring in "binding" yet.
17:34rhickeydid you really need it?
17:34Chousernope. easy to work around with an extra let
17:34Chouseror "first" and "second" I suppose.
17:35rhickeyI am not opposed, but would like to see some real-world need
17:37ChouserI'm don't know that what I'm doing it correct enough to justify any support.
17:54bgeronI think destructuring is not something you "need", as are all other layers around assembly
17:55bgeronbut they're convenient, make programs more readable and let you grasp a program / come up with one easier
19:25rhickeyspecifically destructuring in 'binding' though, is less compelling