News for hackers. Stuff that matters.
Re:Crystal: the programming language by asterite on Tuesday November 25, 2014 @03:10PM (#8659424)
We actually started by copying ruby's syntax and semantic, including the `do end while`. But a long time ago we started to diverge from it. We are also not sure about this "feature" and we still have time to remove it from the language :-) . It's true that a simple `while ... break if ... end` is enough.

Edit: I also misunderstood the comment. In Crystal `exp while cond` and `begin exp end while cond` are the same.

There are no comments on this comment yet.