News for hackers. Stuff that matters.
Re:Crystal: Fast as C, Slick as Ruby by exDM69 on Thursday August 04, 2016 @06:33AM (#12224612)
The syntax of a language is about the least interesting thing about them. I don't care about curly braces, end keywords or semicolons as long as it is consistent (and fairly easy to parse, so there can be good tooling). The interesting parts are in the semantics, type systems and runtime features.

Choosing a programming language based on the syntax is like choosing your significant other based on looks alone. You're going to be spending a lot of time together, what's inside is what counts.

Re:Crystal: Fast as C, Slick as Ruby by paxcoder on Thursday August 04, 2016 @09:26AM (#12225304)
I've heard this said numerous times, so I'm going to disagree on the record. I think syntax of a programming language is a very important characteristic.

A language with a nice syntax is easier to learn, easier to read and understand, and delightful to write.

Crystal's syntax is a great differentiator between it and its statically typed, garbage-collecting competition.

Re:Crystal: Fast as C, Slick as Ruby by welder on Thursday August 04, 2016 @11:59AM (#12226418)
Exactly! I guess people used to the Ruby syntax are just desensitized or don't know how much of a joy programming can be without having to type 'end' everywhere.
Re:Crystal: Fast as C, Slick as Ruby by exDM69 on Thursday August 04, 2016 @02:01PM (#12227313)
The end keywords is just a minor detail and can be inserted by a smart editor anyway.

Things like list comprehensions and do notation are examples of nice syntactic sugar.

Sensitive whitespace like Python can be nice to write and read, but it's hard(er) to write a parser for it and that's why Python's tooling hasn't been great in the past.

That said, Ruby is even harder to parse and I don't like it aesthetically either.

Re:Crystal: Fast as C, Slick as Ruby by bdcravens on Thursday August 04, 2016 @04:24PM (#12228184)
I think the same could be said about the joy of not having to have perfect whitespace.
Re:Crystal: Fast as C, Slick as Ruby by smnplk on Thursday August 04, 2016 @08:07AM (#12224941)
Or judging the performance of a sports car by its colour.