[
https://issues.apache.org/jira/browse/CAMEL-18599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-18599.
---------------------------------
Resolution: Won't Fix
> Clearer syntax for the Choice EIP
> ---------------------------------
>
> Key: CAMEL-18599
> URL: https://issues.apache.org/jira/browse/CAMEL-18599
> Project: Camel
> Issue Type: Wish
> Components: came-core
> Reporter: Raymond
> Priority: Major
> Fix For: Future
>
>
> Currently, the Choice EIP has a somewhat confusing syntax. Example of a
> question on StackOverflow:
> [https://stackoverflow.com/questions/32382322/camel-end-vs-endchoice-not-the-usual-query]
> So basically:
> * {{.endChoice()}} --> to close a "when" predicate
> * {{.end()}} --> to close the entire "choice" block
> Though it's a bit drastic to change the syntax, but maybe a major version
> like 4.0 is suitable. For example
> * {{.endWhen()}} --> to close a "when" predicate
> * {{.endChoice()}} --> to close the entire "choice" block
> A little less drastic would be to change only the when.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)