[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] [APPROVE] asBoolean

It could return nil instead, and then you could use something.size ? 0. That might help with the error issue.


On 28 Oct 2004, at 16:28, James Harkins wrote:

--- Julian Rohrhuber <rohrhuber@xxxxxxxxxxxxxx> wrote:

I don't like, for example, that Object.size is
defined. I had many
errors that were a lot harder to find for this

I see your point, but I'm going to disagree because I
have a fair amount of code now that depends on
non-collection objects returning 0 for size.

I do agree with you on asBoolean.

____   James Harkins /// dewdrop world
\  /   jamshark70@xxxxxxxxx
 \/    http://www.dewdrop-world.net

"... love and hot pants, peace, harmony..."
  -- Dick Lee, Hot Pants: The Musical
sc-dev mailing list