Re: problems with the scoping in eu4

new topic     » goto parent     » topic index » view thread      » older message » newer message

All I would really say is the scoping together with, the issue of name, type retention after the scope is exited make a situation where odd things happen.

I would not say that scope is broken because the issues are not that severe.

Not being able to declare a variable in a nested scope of the same name as a variable in outer scope is odd. Being able to declare a parameter of the same name as the outer variable (and for that to operate exactly as one would expect - temporarily shadowing the outer variable) makes things rather more odd.

None of the problems I have mentioned are show stoppers. I think they add complexity and particularity. Other than that well it is certainly programmable and rather elegant.

I guess the problem is elegant designs are often hard to improve.

I dislike while with entry and I think that variable declaration should be prohibited in while and switch, and that Eu should have a clean block scope notation.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu