[rust-dev] Goto statement missing

Clark Gaebel cg.wowus.cg at gmail.com
Sun Mar 23 08:59:51 PDT 2014


Use tail call recursion for your FSMs.
On Mar 23, 2014 11:57 AM, "Jérôme Bartand" <moijerob at gmail.com> wrote:

> Hello fellow Rustians,
>
> I noticed that there is no goto statement in Rust yet. Gotos are very
> useful e.g. for writing FSMs or for code generation and can, if used
> sensibly, often make code more readable than code with traditional control
> structures and temporary variables.
> Can we please have a goto statement in Rust?
>
> Please no stupid remarks like "goto fail" or "go to statement considered
> harmful" or similar (the Apple bug was not caused by the goto and Rust has
> unreachable code detection).
>
> Thanks
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140323/edcf5547/attachment.html>


More information about the Rust-dev mailing list