[Gambas-user] Suggestions 4 new keywords

Benoît Minisini gambas at ...1...
Fri Sep 17 11:59:18 CEST 2010


> 
> But if you really want to get rid of something useless, why not change
> SELECT CASE into SELECT? I don't know the history of this keyword, but
> it smells like it was planned to allow for further combinations.
> However, nobody ever implemented them, and it stayed as it was. If we
> don't revive the old idea, why not allowing the programmer to write it
> like SWITCH? You could make it an option:
> 
> SELECT myExpression
> CASE 0
> CASE 1
> CASE 2,3
> CASE ELSE
> END SELECT
> 
> Regards
> 
> Rolf
> 

Did you try it?

-- 
Benoît Minisini




More information about the User mailing list