[rust-dev] Brace-free if and alt

Kevin Cantu me at kevincantu.org
Sat Apr 14 14:02:08 PDT 2012


That reminds me, I keep meaning to make APL-style keyboard mappings...

Also: I'm another one who likes this for `alt` syntax.

--
Kevin Cantu



On Sat, Apr 14, 2012 at 10:06 AM, Joe Groff <arcata at gmail.com> wrote:
> 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?
>
> -Joe
> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev


More information about the Rust-dev mailing list