3 ms·
What would be the alternative? A keyword? `public`? `export`? May be you prefer but a lot of people prefer simple a simple convention over one more keyword.
by owaislone 10y ago
What would be the alternative? A keyword? `public`? `export`? May be you prefer but a lot of people prefer simple a simple convention over one more keyword.
- tiglionabbit 10y agoI would prefer keywords because then if you change your mind about what should be public you don't have to hunt around for every reference to it and change its name. Or, give me a convention where public stuff looks normal and private stuff looks weird, because then at least my JSON serializer will work. In Python you lead with an underscore to denote privateness. You could use interfaces to communicate privateness. If something isn't exposed in an interface, it can be assumed to be private. Or just don't have your compiler enforce privateness. You don't need it. Plenty of languages get along fine without it.