4 ms·
That’s a subjective matter of taste.
by Klonoar 3y ago
That’s a subjective matter of taste.
- LorenDB 3y agoYes, but I think you'll find that many people tend to resist change, including drastic syntactic changes (as compared to how languages like D iterate on previous languages like C++).
- lifthrasiir 3y agoRust specifically changed its syntaxes to resemble C++. For example the turbofish syntax `::<T>` is actually a highly bad choice by its own, but was deemed more familiar to C++ users who are used to `<T>` (which was too ambiguous so had to be tweaked though). Even `return` was spelled `ret` back then!
- nicoburns 3y agoRust syntax isn’t really that novel. It’s not exactly like C, but most of its syntax is pulled from some popular language: some from C, some from JS, some from Python, some from ruby, etc.
- aldanor 3y agoA lot more from ocaml than js/Python/ruby.
- littlestymaar 3y agoLots of concepts come from Ocaml, but syntax-wise, Rust is closer to JS than to anything else.