2 ms·
Standardized language-defined syntactic sugar is deeply important - esp for something as important as interfaces/traits - which are the foundation blocks for se
by lenkite 3y ago
Standardized language-defined syntactic sugar is deeply important - esp for something as important as interfaces/traits - which are the foundation blocks for setting component contracts in libraries and modules.
- colonwqbang 3y agoNot if the standardised way is worse than the naive way, like in C++. Then I will rather take manual virtual calls, like in C: https://elixir.bootlin.com/linux/latest/source/include/linux/fs.h#L1916 https://elixir.bootlin.com/linux/latest/source/include/linux... It isn't that much more work and it's not something you end up doing terribly often. I think destructors are a much more important to help day to day development and avoid bugs.