Re: New switch/case idea

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...

I still feel that changing away from switch...do to switch...on (in the English EU 4.0) is a good idea if it helps make EU 4.0 more comfortable for bilingual English-Russian version.

switch X on doesn't make quite the same sense to me. If I were to use switch X on, I would think it should be switch on X do case 1 etc... Because we are switching on X.

switch X on 
    case 1 then 
    case 2 then 
end switch 

That reads that we are switching on case 1 or case 2 but we are switching on X, not the case statements. So, switch on X do makes sense, but is more verbose than switch X do, adds no clarity and doesn't get rid of do.

Jeremy

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

Search



Quick Links

User menu

Not signed in.

Misc Menu