inclusive-lower-bound, exclusive-upper-bound (was Re: Range Operation pre-PEP)
Greg Ewing
see at my.signature
Tue May 15 01:52:02 EDT 2001
Andrew Maizels wrote, giving examples of code where requiring
explicit line continuation markings would be tedious:
>
> for i in item
> where i.custnum = c.custnum and
> i.duedate < today - 60 and
> i.open <> 0:
> over60 += i.open.
> end.
A couple of ideas come to mind:
* Allow implicit line continuations anywhere you have what
is obviously a syntactically incomplete structure (e.g.
an expression ending with a binary operator).
* Allow a statement to have indented continuation lines.
> if over60 > 50 then do:
Do you really need both "then" and "do" there? Seems a
tad wordy to me.
By the way, I really like the idea of having relational
DB constructs integrated with the language. Few things
suck more ferociously than embedded SQL, in my opinion!
I wish you luck!
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list