You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (Jira)" <ji...@apache.org> on 2026/06/13 14:28:00 UTC
[jira] [Updated] (VELOCITY-995) Deprecate syntax constructs not planned for next major version ; add elvis operator
[ https://issues.apache.org/jira/browse/VELOCITY-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson updated VELOCITY-995:
------------------------------------
Description:
Next engine major version will allow ${kotlin expression} constructs (at least, that's the goal). To go this route, we need to explicitly deprecate the syntax constructs.
Introduce:
- elvis operator
Deprecate :
- {{${foo|'bar'}}} => #if($foo)$foo#{else}bar#end
- $foo.bar => ${foo.bar}
- ${$foo.bar} => ${foo.bar}
Syntax deprecation warnings should be gated.
was:
Next engine major version will allow ${kotlin expression} constructs (at least, that's the goal). To go this route, we need to explicitly deprecate the syntax constructs.
Introduce:
- elvis operator
Deprecate :
- {{${foo|'bar'}}} => {{${foo ?: 'bar}}}
- $foo.bar => ${foo.bar}
- ${$foo.bar} => ${foo.bar}
Syntax deprecation warnings should be gated.
> Deprecate syntax constructs not planned for next major version ; add elvis operator
> -----------------------------------------------------------------------------------
>
> Key: VELOCITY-995
> URL: https://issues.apache.org/jira/browse/VELOCITY-995
> Project: Velocity
> Issue Type: Task
> Components: Engine
> Affects Versions: 2.5
> Reporter: Claude Brisson
> Priority: Major
> Fix For: 2.5
>
>
> Next engine major version will allow ${kotlin expression} constructs (at least, that's the goal). To go this route, we need to explicitly deprecate the syntax constructs.
> Introduce:
> - elvis operator
> Deprecate :
> - {{${foo|'bar'}}} => #if($foo)$foo#{else}bar#end
> - $foo.bar => ${foo.bar}
> - ${$foo.bar} => ${foo.bar}
> Syntax deprecation warnings should be gated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org