Why don't people like lisp?

Rainer Deyke rainerd at eldwood.com
Thu Oct 23 19:25:36 EDT 2003


Jon S. Anthony wrote:
> Brian Kelley <bkelley at wi.mit.edu> writes:
>> Now the usage is:
>>
>> f = SafeFileWrapper(open(...))
>> print >> f, "A couple of lines"
>> f.close()
> ...
>> I still have to explicitly close the file though when I am done with
>
> It's just this sort of monotonous (yet important) book keeping (along
> with all the exception protection, etc.) that something like
> with-open-file ensures for you.

Personally I'd prefer guaranteed immediate destructors over with-open-file.
More flexibility, less syntax, and it matches what the CPython
implementation already does.


-- 
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com






More information about the Python-list mailing list