tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.02k stars 48 forks source link

add let with single list #138

Closed porky11 closed 7 years ago

porky11 commented 7 years ago

because (let (a b c)) without types isn't possible anyway, this could mean the same as (let ((a b c)))

tomhrr commented 7 years ago

I don't think this is a good change, because it's an extra case that the developer has to remember when reading, but only gives a very slight advantage to the author when writing. It also means that a macro author who is working against let has to remember to handle this exceptional case, in addition to the standard syntax.

porky11 commented 7 years ago

Its done the same way for for

tomhrr commented 7 years ago

:S That's a good point. I've thought a bit harder about this, and would still prefer not to make the change, for the following additional reasons:

porky11 commented 7 years ago

good points, thx