Re: Re: Please VOTE! Changing keywords to functions
Mukhsein Johari <[email protected]> Thu, 29 Jul 2004 11:13:03 +0100 (BST)
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
--- Mark Hahn <[email protected]> wrote: > The keywords "assert", "import", and "from" have > been eliminated on > technical grounds. That only leaves: > > exec > raise > > break > continue > return > What about yield? Is voting on that closed? I'd vote to keep yield and return be the same 'type' of thing. Either both functions or both keywords. Making them different seems confusing. To me at least. I guess one of the things to think about when deciding is: Do you want users to be able to change the meaning of those things? Maybe you do, maybe you don't. eg. def raise(x): print x Hmmm...seems 'dangerous' to me. I think that you want to keep things such that the programmer of a prothon program (either original or newly recruited) can quickly make sense of things instead of having to check if things like raise and yield in that program actually means what he thinks it does. Keywords give you that sense of certainty. ________________________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html