Re:Playing with Syntax
by lispm on Saturday August 20, 2016 @12:52PM
(#12327317)
What about all those superfluous commas? I also dislike languages where expressions don't have visible bounds.
[ Parent
| on HN ]
Re:Playing with Syntax
by icebraining on Saturday August 20, 2016 @01:05PM
(#12327381)
A line break isn't visible? Not by itself, I suppose, but in the code, it's hard to miss.
for what expression does the line break stand, exactly?
Re:Playing with Syntax
by smallnamespace on Saturday August 20, 2016 @02:22PM
(#12327728)
But why must everything be an expression?
Because anything else is a language design mistake.
Re:Playing with Syntax
by smallnamespace on Saturday August 20, 2016 @04:53PM
(#12328271)
Can you justify that statement empirically?
a, b, c is a tuple. Parentheses can be omitted, same as in some ML dialects:
# let a, b, c = 10, 11, 22;;
val a : int = 10
val b : int = 11
val c : int = 22
# a, b, c;;
- : int * int * int = (10, 11, 22)
# (a, b, c);;
- : int * int * int = (10, 11, 22)