4 ms·
I didn't think it was that controversial a statement. For example, Wikipedia says:[0] > Rust's syntax is similar to that of C and C++,[43][44] although many of
by creata 1y ago
I didn't think it was that controversial a statement. For example, Wikipedia says:[0]
> Rust's syntax is similar to that of C and C++,[43][44] although many of its features were influenced by functional programming languages such as OCaml.[45] Hoare has described Rust as targeted at frustrated C++ developers...[15]
I'm not sure what "actionscript types of function notation" means, but Rust's closures syntax (|x| ...) was probably inspired by Ruby and/or Smalltalk. Anyway, sure, the expression-orientedness, implicit return, etc., are very un-C++-like, but I do think the syntax was explicitly designed to be approachable to C++ developers.
[0]: https://en.wikipedia.org/w/index.php?title=Rust_(programming_language)&oldid=1301451259 https://en.wikipedia.org/w/index.php?title=Rust_(programming...