Re: Euphoria vs. other programming languages
- Posted by CChris Mar 09, 2009
- 1465 views
I do not understand your requirements for variables and scope.
Ability to tell where a symbol is defined from, or where it will be seen from, with as little a search overhead as possible, and as much certainty as possible. Eu 4.0 is even worse than 3.1.1 in that respect.
Please substantiate this claim.
While the global scope still exists, it's use is discouraged, and would probably have been removed completely, except for legacy code.
Matt
If an identifier appears at line x in file y, you now don't know at all in which line and which file it was defined. In 3.1, you know it comes from a previously parsed symbol.
Likewise, there is no way to determine easily where a public symbol is being seen. You have to follow all the chains of "public include" directives that start from the definition file to sort it out. In 3.1, a global symbol was seen from the point where it is defined onwards, period.
Further, even though the "global" keyword has been left in, its semantics have changed, to the effect of breaking most complex libraries available. win32lib is perhaps the most obvious example.
Need more? There is.
CChris