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

Re: [sc-dev] [approve] Function-block change to return function result, and accept arguments

I don't really see the point. You can just wrap another function. Give me an example of how this could be useful.

On Dec 9, 2004, at 1:33 PM, James Harkins wrote:

   block { |... args|
      var result;
      result = this.valueArray([{ |val| ^val }] ++

This would make block a break-able version of value.

Some folks on the Web forum were asking about this. I
have mixed feelings -- I think relying on early return
a lot is a bad programming habit. Could be useful
sometimes, though.


____   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