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

Re: [sc-dev] [APPROVE] asBoolean



Would be the cleanest way...
I vote for this
(sorry JH...)

Till

On 28 Oct 2004, at 18:00, Scott Wilson wrote:

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

S.

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
reason.

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.
hjh

=====
____   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
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev


_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev