[Gambas-user] Suggestions 4 new keywords

Benoît Minisini gambas at ...1...
Fri Sep 17 12:54:45 CEST 2010


> Am 17.09.2010 11:59, schrieb Benoît Minisini:
> >> 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?
> 
> No, I never have... (getting red)
> 
> But, do you happen to know why it was originally implemented like this?
> I have known it for ages like SELECT CASE and always have wondered why...
> 
> Regards
> 
> Rolf
> 

No idea. Maybe to look like real english?

-- 
Benoît Minisini




More information about the User mailing list