From: gotoken@... (GOTO Kentaro) Date: 1999-05-17T17:52:05+09:00 Subject: [ruby-talk:00319] Re: Arity features for Proc object? In message "[ruby-talk:00318] Re: Arity features for Proc object?" on 99/05/17, Yukihiro Matsumoto writes: >I see. Thank you. I expected you to answer this question, Gotoken. Aha, I felt that I was called :-) If I can add an etymology, `arity' is a technical term of mathematics, which is derived from unary, binary, trinary, ... , n-ary etc. It is reraly translated to `kou suu' in Japanese. >Parameter assignment for blocks is done by multiple assignment, which >does not do the number check. I know it's little bit weird for Proc >objects, but the Proc is relatively new feature to Ruby. I couldn't >ignore compatibility. I would add argument number check to the Proc >objects in the future version, maybe. I hope so. But it might cause serious incompatibility to earlier versions because Proc.new{|i|...} can receive .call(a,b) as an array. We should have discussions. -- gotoken