OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

wsbpel message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: AW: [wsbpel] Issue 136 - Proposal For Vote


Gruss / Regards
Frank Leymann

-----Ursprüngliche Nachricht-----
Von: Francisco Curbera [mailto:curbera@us.ibm.com] 
Gesendet: Freitag, 28. Januar 2005 20:26
An: ygoland@bea.com
Cc: wsbpeltc
Betreff: Re: [wsbpel] Issue 136 - Proposal For Vote

The principle of least surprise works differently depending on who is going
to be surprised. You are assuming that traditional programmers will be
writing BPEL and will be puzzled that it does not work like C++; we're not
so sure that is the people we need to worry about. On the other hand,
renaming "switch" provides no new function and may "surprise" people
already working with BPEL (users, implementers, etc).

So I would prefer to close w/o change.



                      "Yaron Y. Goland"

                      <ygoland@bea.com>        To:       wsbpeltc

                      01/28/2005 12:33         Subject:  [wsbpel] Issue 136
- Proposal For Vote                                         

                      Please respond to



Issue 136 – If-Then-Else Support

Proposal: Rename the elements in switch to make them into an
if-then-elseif-else structure.

Rationale: BPEL's switch is identical in functionality to what other
languages use if-then-elseif-else for. To make matters more confusing
other languages do include a control structure called 'switch' but in
the majority of languages that 'switch' doesn't work anything like
BPEL's switch does.
             Following the principle of least surprise it would be best if
flow control structures followed the same naming styles as used by just
about every other major language.

Changes Required: Replace "switch" with "if", "case" with "elseif",
"otherwise" with "else" and add in a "then" and condition element to the
switch activity. This is a purely syntactic change.

<if standard-attributes>
    <condition expressionLanguage="anyURI"?>
       ... bool-expr ...
    <elseif> *
       <condition expressionLanguage="anyURI"?>
          ... bool-expr ...

Note: Good ideas stolen from Maciej, bad ones I invented myself.

To unsubscribe from this mailing list (and be removed from the roster of
the OASIS TC), go to

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]