Re: New Switch Idea
- Posted by Critic Mar 30, 2009
- 1090 views
The problem is that they are possibly too similar, especially to introduce into a language that's never had either.
Implement "select" then. Some users have already complained they don't want/understand fallthrough.
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.
Yes, EU is quite verbose already - don't make it worse! Fallthrough is not "crystal clear", it is a wierd concept that no other control statement uses.
Also, there's always a downside to adding keywords. And select is a common word, from GUI widgets and databases.
Provide a command line tool to rename an EU identifier. This will be very useful anyway and is not hard to do.