Is using 'if' and 'when' confusing? should be not standardise over it?

I think "when" is used as you say "when this then that" not "when this maybe this or maybe that else that", where as if/else is a common usage - so helps emphasis that rules are more atomic.

With Edson's work is this not all localisable now anyway? If so, need to make sure that the guided editors obey his keyword localisation work.

Mark
Michael Neale wrote:
no, it was just to be different. It can be anything. It can be

"wassup" or something ;)

Not sure if that explanation has any real meaning, I mean it makes a point, but "when" actually implies to me that it is slightly temporal (ie "when" means it will happen, at some point in time, where as "if" means it may or may not happen - neither of which are procedural/imperative).

I think its ok to say IF, as people still say "if/then" for production rules, its not really confusing - perhaps we need another way to explain imperative versus declarative.

On 2/26/07, Mark Proctor <mproctor@codehaus.org> wrote:
I noticed that 'if' is used in the guided editor instead of 'when', whats the reason for this? As currently I explain the use of 'when' because it indicates its not procedular, where as 'if' is considered part of a procedural logic flow. Will this confuse that explanation?

'if' screen shot

Mark

_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev



_______________________________________________ rules-dev mailing list rules-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-dev