Opinions about conditional built-in names?
Daniel Dekany <[email protected]> Sat, 30 May 2015 10:04:54 +0200
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
I have added someBoolean?choose(whenTrue, whenFalse), which is the FTL equivalent of the ternary operator. Only one of the parameter expressions will be evaluated. The name was voted/discussed back then, though I'm still open for new ideas. I also want to add this: someValue?switch(case1, result1, case2, result2, ...) and I wonder what the name should be. Any opinions? -- Best regards, Daniel Dekany ------------------------------------------------------------------------------