[
https://issues.apache.org/jira/browse/VELOCITY-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18119163#comment-18119163
]
Claude Brisson edited comment on VELOCITY-995 at 9/25/26 11:32 AM:
-------------------------------------------------------------------
Here is the updated list of what has been deprecated, in 2.5 rc2:
* {{velocimacro.enable_bc_mode = true}}
* {{runtime.strict_math = false}}
*
* {{velocimacro.enable_bc_mode}}
*
* {{runtime.immutable_ranges = false}}
plus a corner case: double quoted strings ending with a backslash, like
{{"foo\"}}
The alternative value syntax, the informal navigation and the extra dollar can
wait 3.0 to be deprecated.
was (Author: claude):
Here is the updated list of what has been deprecated, in 2.5 rc2:
* {{velocimacro.enable_bc_mode = true}}
* {{runtime.strict_math = false}}
* {{velocimacro.enable_bc_mode}}
* {{runtime.immutable_ranges = false}}
plus a corner case: double quoted strings ending with a backslash, like
{{"foo\"}}
The alternative value syntax, the informal navigation and the extra dollar can
wait 3.0 to be deprecated.
> Deprecate syntax constructs not planned for next major version
> --------------------------------------------------------------
>
> 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
> Assignee: 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, by {{runtime.deprecation.warn}},
> I will leave it to false by default for now but mention it in the docs, then
> 2.5.1 or 2.6 can turn it on.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]