On Mon, May 23, 2011 at 11:51 AM, Bob Nystrom <munificent...@gmail.com> wrote: > >> +1 -- terseness is a virtue in a language, but this seems to be taking it >> to a bit of an extreme. I refuse to believe that the extra milliseconds >> saved by typing "fn" instead of "function" makes a difference in >> productivity, > > The Javascript committee is spending a huge amount of effort right now to > improve JS's function syntax moving forward in part because "function" is > long.
And C# introduced special syntax for lambdas because anonymous delegates were too verbose. I think people tend to underestimate the psychological value of terseness. There's a balance here, having extra operators or keywords that are not strictly necessary can help readability (this is why people have issus with Lisp), but having too much of it can have a substantial impact on the way people write code (not much functional stuff was being written in C# 2.0, or indeed Java, despite it being technically possible - the slight added convenience of lambda statements and expressions punches way above its weight here). -- Sebastian Sylvan _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev