<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
It's not so much imperative/declarative but that if indictes its part
of a sequence of logic, when is more atomic - but it is contrived :)<br>
<br>
Michael Neale wrote:
<blockquote
 cite="mid:96ab3ced0702261536h7c6f82e1pe0fb5d6ba55cf40d@mail.gmail.com"
 type="cite">yes its only a tool thing, exactly. purely for the UI, so
it can say whatever we want. <br>
  <br>
"When" is OK with me - but I am not sure if the argument of if ==
imperative vs. when == declarative is the best - it may make sense to
new users, but it does sound a little contrived to me (I always cringed
at the explanation). <br>
  <br>
I guess pragmatically speaking: Java, C, C#, C++, perl, python, ruby
all have "if" but not "when" - given they are the most common
imperative languages, using "when" probably makes good sense as a
differentiation point now I think of it.
  <br>
  <br>
The Rule Modeller localisation mainly comes down to i18n style
.properties files anyway - whereas DSL is user customisable - but we
could make it use a DSL file eventually. <br>
  <br>
basically, platofrm i18n will eventually be done by engineering
services here, but it will really be based on user demand, whereas DSL
allows users to do what they want when they want. <br>
  <br>
  <div><span class="gmail_quote">On 2/27/07, <b
 class="gmail_sendername">Edson Tirelli</b> &lt;<a
 moz-do-not-send="true" href="mailto:tirelli@post.com">tirelli@post.com</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
&nbsp;&nbsp; Mark,<br>
    <br>
&nbsp;&nbsp; Yes, from a DSL Compiler perspective, keywords are customizable. But<br>
from tools perspective, they need to add support to that. Also, I think<br>
Michael is generating DRL directly from the editor, aren't you Mic? So
    <br>
this is only a tool thing...<br>
    <br>
&nbsp;&nbsp; []s<br>
&nbsp;&nbsp; Edson<br>
    <br>
    <br>
Mark Proctor wrote:<br>
    <br>
&gt; Is using 'if' and 'when' confusing? should be not standardise over
it?<br>
&gt;<br>
&gt; I think "when" is used as you say "when this then that" not "when
this
    <br>
&gt; maybe this or maybe that else that", where as if/else is a common<br>
&gt; usage - so helps emphasis that rules are more atomic.<br>
&gt;<br>
&gt; With Edson's work is this not all localisable now anyway? If so,
need
    <br>
&gt; to make sure that the guided editors obey his keyword localisation
work.<br>
&gt;<br>
&gt; Mark<br>
&gt; Michael Neale wrote:<br>
&gt;<br>
&gt;&gt; no, it was just to be different. It can be anything. It can be<br>
&gt;&gt;
    <br>
&gt;&gt; "wassup" or something ;)<br>
&gt;&gt;<br>
&gt;&gt; Not sure if that explanation has any real meaning, I mean it
makes a<br>
&gt;&gt; point, but "when" actually implies to me that it is slightly
temporal
    <br>
&gt;&gt; (ie "when" means it will happen, at some point in time, where
as "if"<br>
&gt;&gt; means it may or may not happen - neither of which are<br>
&gt;&gt; procedural/imperative).<br>
&gt;&gt;<br>
&gt;&gt; I think its ok to say IF, as people still say "if/then" for
    <br>
&gt;&gt; production rules, its not really confusing - perhaps we need
another<br>
&gt;&gt; way to explain imperative versus declarative.<br>
&gt;&gt;<br>
&gt;&gt; On 2/26/07, *Mark Proctor* &lt;<a moz-do-not-send="true"
 href="mailto:mproctor@codehaus.org">
mproctor@codehaus.org</a><br>
&gt;&gt; &lt;mailto:<a moz-do-not-send="true"
 href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;&gt;
wrote:<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; I noticed that 'if' is used in the guided editor instead
of
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 'when', whats the reason for this? As currently I explain
the use<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; of 'when' because it indicates its not procedular, where
as 'if'<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; is considered part of a procedural logic flow. Will this
confuse
    <br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; that explanation?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Mark<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; rules-dev mailing list<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
 href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
&lt;mailto:<a moz-do-not-send="true"
 href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-dev">
https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;------------------------------------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt;_______________________________________________
    <br>
&gt;&gt;rules-dev mailing list<br>
&gt;&gt;<a moz-do-not-send="true"
 href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
&gt;&gt;<a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev
    </a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;------------------------------------------------------------------------<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;rules-dev mailing list<br>
&gt;<a moz-do-not-send="true" href="mailto:rules-dev@lists.jboss.org">
rules-dev@lists.jboss.org</a><br>
&gt;<a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
&gt;<br>
&gt;<br>
    <br>
    <br>
--<br>
Edson Tirelli<br>
Software Engineer - JBoss Rules Core Developer
    <br>
Office: +55 11 3124-6000<br>
Mobile: +55 11 9218-4151<br>
JBoss, a division of Red Hat @ <a moz-do-not-send="true"
 href="http://www.jboss.com">www.jboss.com</a><br>
    <br>
    <br>
_______________________________________________<br>
rules-dev mailing list
    <br>
    <a moz-do-not-send="true" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
    <a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
  </pre>
</blockquote>
<br>
</body>
</html>