Re:Rust's Type System Is Turing-Complete: Type-Level Program...
by yyhhsj0521 on Friday March 10, 2017 @08:10PM
(#13843518)
It's cool... but uh-oh, people are going to write obscure libraries using these features (eyeing c++ template).
[ Parent
| on HN ]
Re:Rust's Type System Is Turing-Complete: Type-Level Program...
by JoshTriplett on Friday March 10, 2017 @09:17PM
(#13843785)
> but uh-oh, people are going to write obscure libraries using these features (eyeing c++ template)
People do that in C++ because C++ lacks some features they want, and goes a long time between updates.
Rust has many built-in metaprogramming features already, and regularly adds more. And if you have something you want to do and can't currently, you can file an RFC.
That makes me much less worried about people (ab)using type-level programming to implement weirdness.