comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » LIST "bug": .Remove on an empty list
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: LIST "bug": .Remove on an empty list [message #74014 is a reply to message #74002] Fri, 17 December 2010 10:03 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Dec 17, 3:37 pm, David Fanning <n...@dfanning.com> wrote:
> Paulo Penteado writes:
>> And I find "if (~l) then ..." much more convenient than "if
>> (l.isempty()) then ...".
>
> IsEmpty has the value, of course, of letting you know what
> you were thinking months ago when you wrote the darn program. :-)

I would still say the same for the test of the object's truth value.
Other modern languages have used this for a while, and it is a common
convention that empty containers are false if empty, true otherwise.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: LIST "bug": .Remove on an empty list
Next Topic: spawning Fortran executables

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Dec 02 11:56:45 PST 2025

Total time taken to generate the page: 1.68058 seconds