Re:C++ Pattern Matching Proposal [pdf]
by mhh__ on Friday January 03, 2020 @06:55PM
(#21951635)
> If you call a function and it doesn't exist, it won't get auto-generated for you on the fly.
People want these features and the end up making them (badly) using Macros. Also, as to "a + b", it's either trivial enough to be inlined immediately by the compiler or obvious enough that it's your fault.
> If you call a function and it doesn't exist, it won't get auto-generated for you on the fly
As opposed to you writing the function manually every time and then it guaranteeing your binary gets cluttered?
C is also not portable assembler as some people claim, modern compilers are way to complicated for it to be that simple (unless you're working on microcontrollers)
People want these features and the end up making them (badly) using Macros. Also, as to "a + b", it's either trivial enough to be inlined immediately by the compiler or obvious enough that it's your fault.
> If you call a function and it doesn't exist, it won't get auto-generated for you on the fly
As opposed to you writing the function manually every time and then it guaranteeing your binary gets cluttered?
C is also not portable assembler as some people claim, modern compilers are way to complicated for it to be that simple (unless you're working on microcontrollers)