kari icon indicating copy to clipboard operation
kari copied to clipboard

Consider switching order of `define` arguments

Open hannobraun opened this issue 5 years ago • 1 comments

Currently, define takes an anonymous function and a function name, in that order:

[ do things ] :do_things define

It might be better to switch the order of the arguments:

:do_things [ do things ] define

It doesn't make a lot of difference in short examples like this, but it might make functions that take up multiple lines more readable.

hannobraun avatar Dec 01 '19 12:12 hannobraun

While I'm changing things, might as well consider renaming define to def. It's a common enough thing that it warrants a shortened name.

hannobraun avatar Dec 04 '19 18:12 hannobraun