3 ms·
>Half of the GoF design patterns just emulate idioms from functional programming. Real OOP languages like Smalltalk and IO express many useful things that C++
by flavio81 9y ago
>Half of the GoF design patterns just emulate idioms from functional programming. Real OOP languages like Smalltalk and IO express many useful things that C++ cannot.
>Although templates are abused for metaprogramming they are very poor at it and C++ has no real support for metaprogramming.
>because there is no way to do run-time code generation and compilation
It seems that the language you want is not Rust but Common Lisp, which will give you plenty of metaprogramming, easy run-time code generation, (optional) functional programming, and optional object-oriented programming with an OOP system even more powerful than Smalltalk's OOP system.
>My personal feeling is that the new Rust programming language is what C++ should have been.
Well, Free Pascal is already, currently, everything that C++ should have been. No need to go into Rust.