[
https://issues.apache.org/jira/browse/CAMEL-13086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16749052#comment-16749052
]
Peter Keller edited comment on CAMEL-13086 at 1/22/19 7:32 PM:
---------------------------------------------------------------
The actual behaviour is not obvious as in other programming languages a
different behaviour is found, see
[Wikipedia|https://en.wikipedia.org/wiki/Comparison_of_programming_languages_(syntax)]:
* Ada, Visual Basic, Seed7: {{if}} ... {{end If}}
* Bash, sh, ksh: {{if}} ... {{fi}}, {{case}} ... {{esac}}
* ALGOL 68: {{if}} ... {{fi}}, {{do}} ... {{od}}
* COBOL: {{IF}} ... {{ENDIF-IF}}, {{PERFORM}} ... {{END-PERFORM}}
* Visual Basic .Net: {{If}} ... {{End If}}
* Small Basic: {{If}} ... {{Endif}}, {{For}} ... {{EndFor}}, {{While}} ...
{{EndWhile}}
was (Author: peter keller):
The actual behaviour is not obvious as in other programming languages a
different behaviour is found, see
[Wikipedia|https://en.wikipedia.org/wiki/Comparison_of_programming_languages_(syntax)]:
* Ada, Visual Basic, Seed7: {{if}} ... {{end If}}
* Bash, sh, ksh: {{if}} ... {{fi}}, {{case}} ... {{esac}}
* ALGOL 68: {{if}} ... \{fi}}, {{do}} ... {{od}}
* COBOL: {{IF}} ... {{ENDIF-IF}}, {{PERFORM}} ... {{END-PERFORM}}
* Visual Basic .Net: {{If}} ... {{End If}}
* Small Basic: {{If}} ... {{Endif}}, {{For}} ... {{EndFor}}, {{While}} ...
{{EndWhile}}
> Java DSL: Rename "endChoice" to "endWhen"
> -----------------------------------------
>
> Key: CAMEL-13086
> URL: https://issues.apache.org/jira/browse/CAMEL-13086
> Project: Camel
> Issue Type: Wish
> Components: camel-core
> Reporter: Peter Keller
> Priority: Major
> Fix For: 3.0.0
>
>
> Java DSL: Rename {{endChoice}} to {{endWhen}} as {{endChoice}} actually ends
> a {{when}} condition.
> I am aware that this will break current routes. Nevertheless I wanted to
> bring this issue to discussion as {{endChoice}} isn't obvious for beginners
> that learn the framework.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)