The problem with that is that underscores are internally used to declare functions that use the cdecl calling convention; and @ is used for stdcall. It may look prettier, but it opens a bucket of worms if you are wanting to compile the language to native code.Acid_Snake wrote:the problem with it is that it takes more time for the programmers to read the code and see what it does than with other methods. Python for example uses underscores to declare private attributes, this is better as with less code you are giving away more information, and the way I do it (as shown on the other thread) is even better.
You're comparing apples to oranges though, criticizing namespaces for not doing something they weren't intended forAcid_Snake wrote:structs weren't intended for OOP either but it evolved into it, same applies with namespaces, not being developed for that doesn't mean you have to stay archaic and continue to use namespaces like that. Modular programming has been proven to be a really good way of structuring code and the ultimate evolution to namespaces.
Modularization should be done through classes. Actually, given a second thought, namespaces aren't really necessary anymore now that there are abstract classes. It's kinda redundant.
Modular programming is OOP. As for the 'not-at-all sexy C syntax', you can see I'm trying to avoid that, but while you may prefer whitespacing, I prefer using brackets.Acid_Snake wrote:I see that your language is following the trend that Java and C# have followed, which is also the trend that keeps them archaic: OOP-only, no modular programming, god-awful old-looking not-at-all sexy C syntax. Do one simple test: write a hello world in C and a hello world in your language, if it takes more code in your language then you are going the wrong way.
Advertising
