3 ms·
When I read things like https://twitter.com/sebrose/status/858347156427636738 https://twitter.com/sebrose/status/858347156427636738 I wonder two things. - Wha
by pantalaimon 10y ago
When I read things like https://twitter.com/sebrose/status/858347156427636738 https://twitter.com/sebrose/status/858347156427636738
I wonder two things.
- What does that even mean?
- Why is this needed when I can do well without all that in C?
- Const-me 10y agoA code that runs at compile-time, and verifies some restrictions about classes. Namely, this one implements a class called “interface” so you can create your stuff based on that, and verifies that your interfaces don’t contain any data members or non-public functions. It’s useless for me as well, but for different reason. I code for Windows, and Microsoft’s compiler has __interface keyword for decades: https://msdn.microsoft.com/en-us/library/50h7kwtb.aspx https://msdn.microsoft.com/en-us/library/50h7kwtb.aspx