Python grammar..
D-Man
dsh8290 at rit.edu
Wed Jun 13 23:18:26 EDT 2001
On Thu, Jun 14, 2001 at 10:05:21AM +1000, Delaney, Timothy wrote:
| > "Delaney, Timothy" <tdelaney at avaya.com> wrote in message
| > news:mailman.992393599.3573.python-list at python.org...
| > ...
| > > way to do it - a subroutine may or may not return a value, at its
| > > discretion, and I should be able to ignore any returned value.
| >
| > Yes, but if I were designing a language today, I think I would
| > request you to be EXPLICIT about "ignoring the return value" --
| > explicit is better than implicit. It IS an occasional cause of
| > errors in Python (particularly with newbies) that an expression
| > statement's value is silently and implicitly ignored...
| >
| >
| > Alex
|
| So you would prefer that functions whose return value is ignored must be
| called with a keyword ... such as in VB
|
| call aFunction()
or
(void) aFunction() ;
| Personally, I absolutely hate this.
Not any better ;-).
-D
More information about the Python-list
mailing list