[Prototype-core] Re: Array slices and Object.isObject|isBoolean

2007-11-28 Thread Mislav Marohnić
On Nov 28, 2007 4:54 PM, Viktor Kojouharov [EMAIL PROTECTED] wrote:


 If a function can take an argument, and you'd expect to get a boolean in
 some cases, but an object in others, what would you do?


In my opinion, a function that returns booleans in some cases and objects in
others is a poor designed function.

I must agree with Andrew on both his points.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~--~~~~--~~--~--~---



[Prototype-core] Re: Array slices and Object.isObject|isBoolean

2007-11-28 Thread Mislav Marohnić
On Nov 28, 2007 6:07 PM, Mislav Marohnić [EMAIL PROTECTED] wrote:


 In my opinion, a function that returns booleans in some cases and objects
 in others is a poor designed function.


Oops, I meant to say poorly* designed function.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~--~~~~--~~--~--~---