Re: problems with the scoping in eu4
- Posted by petelomax Jan 09, 2011
- 1641 views
jimcbrown said...
jeremy said...
with entry ... no duplication
... but at least there's no need to duplicate code for this case.
You are both inventing this. It is always perfectly ok to replace
while <condition> with entry do <block a> entry <block b> end while
with the much clearer
while true do <block b> if not <condition> then exit end if <block a> end while
You can like "with entry" and I can dislike it, but please stop saying it removes code duplication or makes things easier to read when it achieves neither.
Regards,
Pete