Sweeten results
Posted Dec 4, 2012 15:42 UTC (Tue) by
HelloWorld (guest, #56129)
In reply to:
Sweeten results by david.a.wheeler
Parent article:
GNU Guile 2.0.7 released
Hi David,
For personal reasons, I don't want to sign up to the mailing list. Anyway, whether the defun goes into one line or two isn't what I'm worried about. The problem with the
defun foo bar(baz)
...
syntax is that the first argument is outside of the parenthesis, while the following arguments are within, suggesting that the first argument is somehow different even though it really isn't.
defun foo
bar baz
...
fixes that. There's also another way to write it:
defun foo (bar baz)
...
(I thought that would be rewritten into
(defun (foo bar baz) ...) at first, but it actually works due to the space following
foo).
My main point here is that the heuristic should special-case some forms.
defun is one, another obvious one is
lambda for the same reason.
(
Log in to post comments)