cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: [VOTE] Remove FlowScript Function Parameters Support
Date Tue, 09 Nov 2004 23:07:39 GMT
Vadim Gritsenko wrote:
> Hi Guys,
> 
> As discussed before, and several times already, it is time to phase out 
> "feature" of passing parameters from the sitemap into flowscript as 
> positioned function parameters:
> 
>   function myflow (a, b, c) {
>       ...
>   }
> 
> Because this syntax relies on order of <map:parameter/> elements in the 
> sitemap but not names of the parameters. This syntax is replaced with 
> non-ambigous:
> 
>   function myflow () {
>       var a = cocoon.parameters.a;
>       ...
>   }
> 
> Proposed phase out plan is:
> 
>   1. Write ERROR into the log file in 2.1.6 when usage of deprecated
>      syntax is detected.
>   2. Throw exception in 2.1.7 when usage of deprecated syntax
>      is detected.
>   3. Completely remove support of deprecated syntax in 2.2.
> 
> 
> Please cast your votes.
> 
> 
> Vadim
+1 to all

-- 
Leszek Gawron


Mime
View raw message