5 ms·
They are for this usecase equivalent to a static class
by selfmodruntime 4y ago
They are for this usecase equivalent to a static class
- robonerd 4y agoThen use them.
- marcellus23 4y agoNot every language has those.
- eptcyka 4y agoThe context here is C++. Yes, if you are bound to write Java/C/php, do whatever.
- Supermancho 4y agoMany languages actively fight against having static free functions. PHP, easy. Java, sacrifice testability and even the ability to access the functions under multiple contexts without adding MORE code, in a self-defeating exercise.
- zenexer 4y agoWhy does a language need to offer both if they’re functionally identical? Does it really matter what it’s called?