[rust-dev] Goto statement missing
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).
> Rust-dev mailing list
> Rust-dev at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev