Re: problems with the scoping in eu4

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu