News for hackers. Stuff that matters.
Re:Felix - a fast scripting language by TylerE on Friday January 04, 2013 @01:21PM (#5008903)
Why do language designers continue to insist on semi-colon terminated lines?
Re:Felix - a fast scripting language by reinhardt on Friday January 04, 2013 @01:37PM (#5008996)
Perhaps to dissuade the lowest common denominator of programmers that get hung up on such superficial trivialities.
Re:Felix - a fast scripting language by TylerE on Friday January 04, 2013 @01:51PM (#5009084)
But it's not triviality - it's noise - Signal: Good - Noise: Bad, got it?

If you REALLY need end of line markers, any half-way competent text editor can display them for you.

Re:Felix - a fast scripting language by Kiro on Friday January 04, 2013 @02:15PM (#5009203)
You obviously have no idea what signal-to-noise ratio is about if you think semicolons are noise. Who are you trying to impress?
Re:Felix - a fast scripting language by pekk on Friday January 04, 2013 @02:59PM (#5009497)
End of line is already encoded in source files as \n. Redundancy isn't noise, but it is redundant.
Re:Felix - a fast scripting language by seanmcdirmid on Friday January 04, 2013 @06:45PM (#5010686)
If end of line always means end of statement, by all means get rid of semi colons. If some non-trivial algorithms is used to infer end-of-statement boundaries that is more complicated than detecting end-of-line, then...there will be subtle problems.

I went through this transition before in Scala, the error messages got a lot worse after semi-colon inference was added. I wound up telling people to add semi-colons to their code when they were scratching their head at some sort of parse/type error message.

Re:Felix - a fast scripting language by andrewflnr on Friday January 04, 2013 @03:06PM (#5009536)
Semicolons are distracting, both reading and writing, and mostly useless. If it's not "noise" in a technical sense, is it not still a bad thing? I don't think this should be a complicated question.
Re:Felix - a fast scripting language by stcredzero on Friday January 04, 2013 @03:08PM (#5009550)
It all depends on what you define as signal and what you define as noise.
Re:Felix - a fast scripting language by Yttrill on Friday January 04, 2013 @07:15PM (#5010755)
Two choices dictate a terminator: (a) free form 1D language like C vs 2D language like Python or Haskell, and, (b) support for assignment statements x = y and the like as in C vs all statements starting with a keyword as in say ATS. I personally do not like the semi-colons either.
Re:Felix - a fast scripting language by TylerE on Saturday January 05, 2013 @11:11AM (#5012987)
Doesn't even need to be 2D Layout. See, for instance, ruby.
Re:Felix - a fast scripting language by munificent on Friday January 04, 2013 @02:27PM (#5009278)
It's simpler to parse and some programmers prefer them.
Re:Felix - a fast scripting language by Someone on Saturday January 05, 2013 @03:33AM (#5012094)
And simpler to parse has another benefit Given an effort X spent writing the parser, users of the language get better error messages

Also, I do not think of those semicolons as noise They make text easier to parse for humans, too That's why you see most people end sentences, paragraphs and HN posts with a 'superfluous' period

EDIT: Some people will find the above quite readable I am somewhat in that camp Problem is, however, that in English and other languages capitals like I and E are not guaranteed to be sentence starters That muddles the waters considerably Many programming languages have worse problems.