Arc Forumnew | comments | leaders | submitlogin
1 point by evanrmurphy 4815 days ago | link | parent

> In wart all args are optional (like javascript)

How's this working out for you in general? Any disadvantages?

Does wart still have the `?` syntax for keyword args as in http://arclanguage.org/item?id=13083?

I guess I should try wart and see these things for myself. :)



2 points by akkartik 4815 days ago | link

:) This is a pretty good exhibition of features: https://github.com/akkartik/wart/blob/master/023conditionals.... You can see that the '? for optional' syntax hasn't changed, that $vars and o$vars are convenient and make several macros shorter. I suppose the fact of all args being optional is a little subtle and needs context to read between the lines.

But now I've let you put off trying wart again :) At some point I want to put a little webapp together to make reading wart code more convenient. So you can click 'next' from boot.lisp to go to 000.lisp (next in load sequence), tests are just a click away, etc. Really my only goal is to make it a pleasure to read, and I'd give an arm to hear experiences of lisp programmers reading it.

I haven't had any trouble with optional args (though this is the first time I've noticed them being useful). Or breaking constraints in general. I suspect the problem is not constraints I've broken but constraints I'm not even aware of.

-----