News for hackers. Stuff that matters.
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.
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.
Re:Playing with Syntax by lispm on Saturday August 20, 2016 @02:10PM (#12327676)
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?
Re:Playing with Syntax by davexunit on Saturday August 20, 2016 @04:34PM (#12328201)
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?
Re:Playing with Syntax by 918723192 on Saturday August 20, 2016 @03:15PM (#12327937)
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)