Algol (1958) is the spiritual parent language of the C/C++/C#/Java family. It introduced the accursed "int x" syntax which Niklaus Wirth tried to undo with Pascal and other designs. Yet the notation persists and perpetures a 60-year confusion around types and values.
-
-
It is already the substitute, thing you substituted was the T in the template. If you want the functionality o/t mentioned function then write a function, otherwise you want a container where you can put stuff. How would you get a container where you could put ints in otherwise?
-
But yeah, C++ could use a more unified runtime & compiletime way of writing functions. I guess constexpr wants to achieve just that
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.