News for hackers. Stuff that matters.
Re:Things Rust shipped without by istvan__ on Friday July 03, 2015 @10:44PM (#9828927)
I do not use goto in my code. What do I do wrong? :) Ok, I have to admit that I used it on C64 in the 80s.

Anyways, exceptions are sort of gotos or at least they can behave that way.

Re:Things Rust shipped without by sklogic on Saturday July 04, 2015 @06:43AM (#9829816)
If you're not implementing fast FSMs, fast bytecode interpreters (and dynamic dispatchers in general), and you're not using metaprogrming to the full power, not implementing multiple embedded DSLs - then you can live without a goto. Otherwise it is essential.
Re:Things Rust shipped without by pjmlp on Saturday July 04, 2015 @08:48AM (#9829993)
Metaprogramming to the full power sounds like Lisp. It doesn't have goto.
Re:Things Rust shipped without by sklogic on Saturday July 04, 2015 @10:07AM (#9830174)
> Metaprogramming to the full power sounds like Lisp.

It does, yes, although many Lisps got a pretty limited backend for this sort of things. My preferred metaprogramming environment must have a fallthrough mode for allowing generating low-level code where Lisp semantics is not sufficient. Rust seems like a very good target platform in this sense, so the lack of goto really hurts.

> It doesn't have goto.

Of course they do (tagbody in Common Lisp, for example). And when they don't, it's often relatively easy to add one.

Re:Things Rust shipped without by pjmlp on Monday July 06, 2015 @06:52AM (#9838124)
> Of course they do (tagbody in Common Lisp, for example). And when they don't, it's often relatively easy to add one.

I was wrong, however it is much more limited than the goto everywhere from C, as where the labels are located is clearly defined in the tagbody and not in every possible statement.

Re:Things Rust shipped without by EugeneOZ on Saturday July 04, 2015 @01:15AM (#9829314)
No, exceptions are incomparable much harmful because they don't have destination, they just hysterically run, crashing everything on their way.
Re:Things Rust shipped without by istvan__ on Saturday July 04, 2015 @03:46AM (#9829574)
I said "sort of"...