On Friday, 21 February 2014 at 17:25:48 UTC, Francesco Cattoglio wrote:
On Friday, 21 February 2014 at 15:57:32 UTC, Thiez wrote:
That is not true, Rust has several keywords that are more than 5 characters, such as 'continue'. The full list is here: http://static.rust-lang.org/doc/master/rust.html#keywords . It is true that they prefer short keywords over long ones.
I knew there was no hard-coded limit, but this "try to keep keywords short" sounds really stupid to me. No offence to designers, but I really don't think we should save some spar characters in 2014... I do all my coding on a remote SSH, but still I have plenty of screen space to spare ;)
My first glance:
"priv" instead of "private"... bleah! At least it's clear enough
"mut"... what is this? "mutable", "mutex", perhaps "mute"?
"impl" could be several different things, too, but I guess it's "implements"

And "continue" being a different keyword some time ago. In the end they changed it. Tons of discussions and stuff; was it worth saving 3 characters, after all?

I hope their standard library is at least WAY more verbose... Otherwise I pity casual Rust programmers :D

Depends on how often and where you write those keywords. mut seems to be quite common and even in D I would not like 'reference' more than 'ref', especially since it is used in parameter lists.

Reply via email to