4 ms·
I don't understand why new languages ever use the :: notation for scoping. It's hard to type (holding shift for two keystrokes) and visually noisy. Obviously,
by rogerclark 4y ago
I don't understand why new languages ever use the :: notation for scoping. It's hard to type (holding shift for two keystrokes) and visually noisy.
Obviously, C++ set the precedent and people are familiar with it. But if you're starting a completely new compiler, why make the same old mistakes with syntax?
- wheelerof4te 4y agoIt is to visually distinguish between module scope and struct scope. A lot of languages made a mistake of using the dot for both scopes. You get used to it.
- mrtranscendence 4y ago> It's hard to type (holding shift for two keystrokes) Not if you've swapped : and ;, like I have!
- ddevault 4y agoGood thing you have to type heaps of semi-colons and double-colons to use Hare!