Hi Mariano:

> On 19 Feb 2018, at 20:09, Mariano Martinez Peck <marianop...@gmail.com> wrote:
> 
> I guess it's because we offer both flavors. If you see valueWithArguments: 
> you will see it does throw errors like #value*  / #cull* do. 

Did you try my examples? 
I don’t think this is correct.
In Pharo 6.1, #valueWithArguments: doesn’t throw any errors as far as I can 
see. It inserts nil for absent arguments however.

This is what I tried:

blocks := {
 [ { } ].
 [:a | { a } ].
 [:a :b | { a. b } ].
 [:a :b :c | { a. b. c } ]
}.

blocks collect: [:b | b valueWithPossibleArgs: {1}].
blocks collect: [:b | b valueWithPossibleArgs: {1. 2. 3}].
blocks collect: [:b | b valueWithEnoughArguments: {1}].
blocks collect: [:b | b valueWithEnoughArguments: {1. 2. 3}].


Best regards
Stefan


-- 
Stefan Marr
School of Computing, University of Kent
http://stefan-marr.de/research/



Reply via email to