3 ms·
Stroustrup's pretty opposed to the idea that anything that can be done as a library without any language extensions automatically should be, so I think it's saf
by plorkyeran 11y ago
Stroustrup's pretty opposed to the idea that anything that can be done as a library without any language extensions automatically should be, so I think it's safe to say that by the time this is ready for standardization it will not be a mess of macros that beats the language into submission. It's just a lot easier to get people to try out your prototype when it doesn't require first building the compile from some branch.
- kryptiskt 11y agoThat seems right, in the paper he is pretty open to the idea of extending the language if the solution is general enough: "In the future, we would like to implement an actual language extension that will be capable of working with open patterns. Given such an extension and its implementation, we would like to look into how code for such patterns can be optimized without hardcoding the knowledge of the semantics of the patterns into the compiler. We would also like to experiment with other kinds of patterns (including those defined by the user), look at the interaction of patterns with both the standard library and other facilities in the language, and make views less ad-hoc." http://www.stroustrup.com/OpenPatternMatching.pdf http://www.stroustrup.com/OpenPatternMatching.pdf
- nly 11y agoStroustrup has wanted multi-methods in C++ almost since its inception. At least 20 years.