Re: Please VOTE! Changing keywords to functions
"Mark Hahn" <[email protected]> Tue, 27 Jul 2004 10:26:18 -0700
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <005e01c473fe$d4288810$da01a8c0@walker> |
"Mukhsein Johari" wrote: > --- Mark Hahn <[email protected]> wrote: > > > That pretty much leaves this list as candidates for > > conversion... > > > > assert > > from > > import > > raise > > > > Please vote on which keywords you think should be > > changed to functions. > > > > Hmmm...Is it nice to write: > assert(23<x<42) ? > > Thing is, some words should be keywords only so that > it defines an unchanging vocabulary for users of the > language. If they are functions, they can be redefined > to mean other than the intended meaning. Would this > not create problems? IMHO, built-in functions and > keywords should be clear in their differences - they > are for different uses after all. I just realized another problem with assert. The -o optimize option turns them off. That may not be possible if they are functions. Also this means they couldn't be overidden. I'll pull assert from the list on the wiki proposal.