You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Daniel Dekany (JIRA)" <ji...@apache.org> on 2017/08/03 21:41:00 UTC

[jira] [Updated] (FREEMARKER-64) FM3 Unification of function-like constructs

     [ https://issues.apache.org/jira/browse/FREEMARKER-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Dekany updated FREEMARKER-64:
------------------------------------
    Description: 
FREEMARKER-63 has introduced {{TemplateFunctionModel}}, which is the type of values that {{#function}} creates. It should also replace {{TemplateMethodModel}} and {{TemplateMethodModelEx}}, so that we have only one interface for function-like things. (If that doesn't work out well, we at least should remove the deprecated {{TemplateMethodModel}}, and renamed {{TemplateMethodModelEx}} to that name. Also, we need to support the explicit selection overloaded Java methods - see in {{CallPlace}}).

As {{TemplateFunctionModel}} supports both positional and named parameters, the expression language has to be upgraded to support that too.

Things like `?isMethod` and `?isFunction` have to be reworked as well.

  was:FREEMARKER-63 has introduced {{TemplateFunctionModel}}, which is the type of values that {{#function}} creates. It should also replace {{TemplateMethodModel}} and {{TemplateMethodModelEx}}, so that we have only one interface for function-like things. (If that doesn't work out well, we at least should remove the deprecated {{TemplateMethodModel}}, and renamed {{TemplateMethodModelEx}} to that name. Also, we need to support the explicit selection overloaded Java methods - see in {{CallPlace}}). Things like `?isMethod` and `?isFunction` have to be reworked as well.


> FM3 Unification of function-like constructs
> -------------------------------------------
>
>                 Key: FREEMARKER-64
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-64
>             Project: Apache Freemarker
>          Issue Type: New Feature
>          Components: engine
>    Affects Versions: 3.0.0
>            Reporter: Daniel Dekany
>            Assignee: Daniel Dekany
>
> FREEMARKER-63 has introduced {{TemplateFunctionModel}}, which is the type of values that {{#function}} creates. It should also replace {{TemplateMethodModel}} and {{TemplateMethodModelEx}}, so that we have only one interface for function-like things. (If that doesn't work out well, we at least should remove the deprecated {{TemplateMethodModel}}, and renamed {{TemplateMethodModelEx}} to that name. Also, we need to support the explicit selection overloaded Java methods - see in {{CallPlace}}).
> As {{TemplateFunctionModel}} supports both positional and named parameters, the expression language has to be upgraded to support that too.
> Things like `?isMethod` and `?isFunction` have to be reworked as well.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)