Re: Re: Re: Re[2]: Re: class proposal
Christian Tismer <[email protected]> Fri, 16 Jul 2004 02:38:55 +0200
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
Mark Hahn wrote: > Christian Tismer wrote: > > >>>I will make it file.open() and file.open?. >> >>Why that? You are also asking if it is closed?, >>so why don't you ask whether it is opened? > > Technically, "if open" means whether it is open now and "if opened" means > whether it has ever been open in the past. So when asking for a current > state, it should not end in "ed". Yes. isopen is just fine. > I agree "isOpen" could be used, but I like open? and the ? tells you > instantly it is a question (state). It gives good readability just like the > ! (shriek). :-) Shrek! Have you seen it, meanwhile? If so, I'd accept the shriek as well. > Modifying things in place deserves a shriek, don't you think? Not noticing > that is very bad. This is all minor syntactic stuff. The main question is, after you had added lots of salt and taste, shrieks and ?-marks and whatelse, *do you still eat your own dog-food?" If so, fine. If not, core melting ALERT. After reading amost all of what you have, in written and in coding (very well, of course, real style), I still can't buy into the language. Someting is missing. Maybe it is called "appeal", I don't know. My personal excuse to continue using Python for my recent projects is that I managed to get Psyco to collaborate with Stackless. Maybe this is a very good reason. :-) sincerely (off for a while) - chris -- Christian Tismer :^) <mailto:[email protected]> Mission Impossible 5oftware : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 89 09 53 34 home +49 30 802 86 56 mobile +49 173 24 18 776 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/