|
From: Andrey S. <as...@gm...> - 2007-10-13 21:53:34
|
On 10/14/07, Steve Mitcham <Ste...@ty...> wrote:
> Your syntax adds complexity to the API without benefit. There is
> nothing stopping you from calling your own 'new MyAction()' or 'new
> delegate(){}' at the Will clause in the call.
I can not use delegate() since Will does not receive delegates (at
least in the last release). But I agree that my suggestion is nowhere
near being nice to implement, it's just an idea.
> Also, for the Change instead of Cause, we are not changing parameters
> we are setting them. I agree that ToBe might be hard to remember, but
> that's what intellisense is for :) and once written it reads very well.
Well, strictly speaking, we change them since thay can be ref not out. ;)
But that's nitpicking.
After some thinking, I agree that Cause is a good choice.
Change is a possible collision trap for other fluent frameworks, and
single Parameter method is not enough to justify it.
|