Re: New Switch Idea

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

We decided on the dev list against this because of the very close similarities of switch/selects operations.

Well, that's the point: Similar operation - similar look. I dislike "switch without fallthru" because it is too verbose ("fallthru" is even spelt wrong). And making "select" a keyword really does no harm, IMHO.

The problem is that they are possibly too similar, especially to introduce into a language that's never had either. We have to consider the effect upon the user base. Euphoria has always been a fairly verbose language, and the with/without syntax goes along with that, including making the intended and expected behavior crystal clear.

Also, there's always a downside to adding keywords. And select is a common word, from GUI widgets and databases.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu