[rust-dev] Brace-free if and alt

Joe Groff arcata at gmail.com
Sat Apr 14 10:06:16 PDT 2012

On Thu, Apr 12, 2012 at 10:33 AM, Niko Matsakis <niko at alum.mit.edu> wrote:
> I am not a big fan of the `if` syntax.  Or at least I don't mind our current
> one and it is nicely unambiguous.  However, I really like "alt with arrow"
> syntax.  I find the current one quite unreadable, particularly for long
> blocks.  The "=>" arrow (or `->`, I am somewhat indifferent) helps to set
> apart the conditions and the blocks.

Total bikeshed comment: ASCII arrows are a massive pain to type. Is
there any possibility of using a single-character symbol there?


More information about the Rust-dev mailing list