News for hackers. Stuff that matters.
Re:Tour of Rust by zozbot234 on Sunday July 12, 2020 @06:22AM (#23810323)
I'm not sure that's the full story. You need macros in Rust for feature parity with, e.g. C++ templates with their metaprogramming capabilities, and C++ is definitely not a pure functional language.
Re:Tour of Rust by wwright on Sunday July 12, 2020 @08:21AM (#23810800)
It’s worth noting that C++ templates themselves are a purely functional language, and a Turing complete one at that
Re:Tour of Rust by rapsey on Sunday July 12, 2020 @07:01AM (#23810474)
Feature parity with C++ is not a goal and neither should it be.
Re:Tour of Rust by d_tr on Sunday July 12, 2020 @09:05AM (#23811029)
I do not see anything in zozbot234's comment that implies that Rust should strive for feature parity with C++. Some features, however, such as being able to use integer values as generic parameters, are arguably pretty useful.
Re:Tour of Rust by swsieber on Sunday July 12, 2020 @10:00AM (#23811323)
Indeed. I think that's referred to as "const generics" in rust venacular