You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Sylvain Wallez <sy...@anyware-tech.com> on 2002/04/15 23:16:58 UTC
[VOTE] new switch-style selector
Hi team,
Marcus Crafter proposed a while ago a new style of Selector that would
allow to factorize some common computation for all <map:when> cases
instead of starting from scratch a each case as it is today. This is
especially useful when the data that has to be tested is costly to
obtain compared to the time of the actual test (e.g. select on a user
role that is fetched in a database).
All this is decribed in
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101619559107566&w=4 and
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7244
Marcus originally called it "ContextualizableSelector", but this seemed
inappropriate since there are already many Context objects around in
Cocoon. So a better name came which was "SwitchStyleSelector" for its
analogy with the switch construct in Java, whereas the current Selector
is more analogous to if/else-if constructs.
So there are two questions :
- do you want this new style of selector ?
+1
- do you have a better name than "SwitchStyleSelector" ?
I personally don't have ;)
Sylvain
--
Sylvain Wallez
Anyware Technologies Apache Cocoon
http://www.anyware-tech.com mailto:sylvain@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [VOTE] new switch-style selector
Posted by Marcus Crafter <cr...@fztig938.bank.dresdner.net>.
Hi All,
Glad you all liked the proposal :)
I've just submitted an updated set of patches to bugzilla with the
rename to SwitchSelector (#7244). Hope they are ok to be applied.
Please let me now if there are any outstanding issues that should
be fixed.
Cheers,
Marcus
On Mon, Apr 15, 2002 at 11:16:58PM +0200, Sylvain Wallez wrote:
> Hi team,
>
> Marcus Crafter proposed a while ago a new style of Selector that would
> allow to factorize some common computation for all <map:when> cases
> instead of starting from scratch a each case as it is today. This is
> especially useful when the data that has to be tested is costly to
> obtain compared to the time of the actual test (e.g. select on a user
> role that is fetched in a database).
>
> All this is decribed in
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101619559107566&w=4 and
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7244
>
> Marcus originally called it "ContextualizableSelector", but this seemed
> inappropriate since there are already many Context objects around in
> Cocoon. So a better name came which was "SwitchStyleSelector" for its
> analogy with the switch construct in Java, whereas the current Selector
> is more analogous to if/else-if constructs.
>
> So there are two questions :
>
> - do you want this new style of selector ?
> +1
>
> - do you have a better name than "SwitchStyleSelector" ?
> I personally don't have ;)
>
> Sylvain
>
> --
> Sylvain Wallez
> Anyware Technologies Apache Cocoon
> http://www.anyware-tech.com mailto:sylvain@apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: ManageSoft GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&'
&&&&.
&&&&&&&:
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [VOTE] new switch-style selector
Posted by Nicola Ken Barozzi <ni...@apache.org>.
From: "Sylvain Wallez" <sy...@anyware-tech.com>
> Hi team,
>
> Marcus Crafter proposed a while ago a new style of Selector that would
> allow to factorize some common computation for all <map:when> cases
> instead of starting from scratch a each case as it is today. This is
> especially useful when the data that has to be tested is costly to
> obtain compared to the time of the actual test (e.g. select on a user
> role that is fetched in a database).
>
> All this is decribed in
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101619559107566&w=4 and
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7244
>
> Marcus originally called it "ContextualizableSelector", but this seemed
> inappropriate since there are already many Context objects around in
> Cocoon. So a better name came which was "SwitchStyleSelector" for its
> analogy with the switch construct in Java, whereas the current Selector
> is more analogous to if/else-if constructs.
>
> So there are two questions :
>
> - do you want this new style of selector ?
> +1
+1
> - do you have a better name than "SwitchStyleSelector" ?
> I personally don't have ;)
Switcher
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [VOTE] new switch-style selector
Posted by Stefano Mazzocchi <st...@apache.org>.
Torsten Curdt wrote:
>
> On Mon, 15 Apr 2002, Sylvain Wallez wrote:
>
> > Hi team,
> >
> > Marcus Crafter proposed a while ago a new style of Selector that would
> > allow to factorize some common computation for all <map:when> cases
> > instead of starting from scratch a each case as it is today. This is
> > especially useful when the data that has to be tested is costly to
> > obtain compared to the time of the actual test (e.g. select on a user
> > role that is fetched in a database).
> >
> > All this is decribed in
> > http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101619559107566&w=4 and
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7244
> >
> > Marcus originally called it "ContextualizableSelector", but this seemed
> > inappropriate since there are already many Context objects around in
> > Cocoon. So a better name came which was "SwitchStyleSelector" for its
> > analogy with the switch construct in Java, whereas the current Selector
> > is more analogous to if/else-if constructs.
> >
> > So there are two questions :
> >
> > - do you want this new style of selector ?
> > +1
>
> +1
>
> > - do you have a better name than "SwitchStyleSelector" ?
> > I personally don't have ;)
>
> .....the statement is usually referred to as "switch-case" that would lead
> to "SwitchCaseSelector" but I guess I would (also) prefer a plain
> SwitchSelector...
>
> +1 for SwitchSelector
Yeah, same here. +1 for this.
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [VOTE] new switch-style selector
Posted by Torsten Curdt <tc...@dff.st>.
On Mon, 15 Apr 2002, Sylvain Wallez wrote:
> Hi team,
>
> Marcus Crafter proposed a while ago a new style of Selector that would
> allow to factorize some common computation for all <map:when> cases
> instead of starting from scratch a each case as it is today. This is
> especially useful when the data that has to be tested is costly to
> obtain compared to the time of the actual test (e.g. select on a user
> role that is fetched in a database).
>
> All this is decribed in
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101619559107566&w=4 and
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7244
>
> Marcus originally called it "ContextualizableSelector", but this seemed
> inappropriate since there are already many Context objects around in
> Cocoon. So a better name came which was "SwitchStyleSelector" for its
> analogy with the switch construct in Java, whereas the current Selector
> is more analogous to if/else-if constructs.
>
> So there are two questions :
>
> - do you want this new style of selector ?
> +1
+1
> - do you have a better name than "SwitchStyleSelector" ?
> I personally don't have ;)
....the statement is usually referred to as "switch-case" that would lead
to "SwitchCaseSelector" but I guess I would (also) prefer a plain
SwitchSelector...
+1 for SwitchSelector
--
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: [VOTE] new switch-style selector
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Stuart Roebuck [mailto:stuartroebuck@mac.com]
>
>
> On Monday, April 15, 2002, at 10:16 PM, Sylvain Wallez wrote:
>
> > Hi team,
> >
> > Marcus Crafter proposed a while ago a new style of Selector that
would
> > allow to factorize some common computation for all <map:when> cases
> > instead of starting from scratch a each case as it is today. This is
> > especially useful when the data that has to be tested is costly to
> > obtain compared to the time of the actual test (e.g. select on a
user
> > role that is fetched in a database).
> >
> > All this is decribed in http://marc.theaimsgroup.com/?l=xml-cocoon-
> > dev&m=101619559107566&w=4 and
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7244
> >
> > Marcus originally called it "ContextualizableSelector", but this
seemed
> > inappropriate since there are already many Context objects around in
> > Cocoon. So a better name came which was "SwitchStyleSelector" for
its
> > analogy with the switch construct in Java, whereas the current
Selector
> > is more analogous to if/else-if constructs.
> >
> > So there are two questions :
> >
> > - do you want this new style of selector ?
> > +1
>
> +1
+1
> > - do you have a better name than "SwitchStyleSelector" ?
> > I personally don't have ;)
> >
> How about plain "SwitchSelector" for brevity?
+3
Vadim
>
> Stuart.
>
>
> Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck
(Adolos)
> Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD
65AF
>
------------------------------------------------------------------------
-
> Stuart Roebuck
stuart.roebuck@adolos.com
> Systems Architect Java, XML, MacOS X, XP,
> etc.
> ADOLOS
<http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [VOTE] new switch-style selector
Posted by Stuart Roebuck <st...@mac.com>.
On Monday, April 15, 2002, at 10:16 PM, Sylvain Wallez wrote:
> Hi team,
>
> Marcus Crafter proposed a while ago a new style of Selector that would
> allow to factorize some common computation for all <map:when> cases
> instead of starting from scratch a each case as it is today. This is
> especially useful when the data that has to be tested is costly to
> obtain compared to the time of the actual test (e.g. select on a user
> role that is fetched in a database).
>
> All this is decribed in http://marc.theaimsgroup.com/?l=xml-cocoon-
> dev&m=101619559107566&w=4 and
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7244
>
> Marcus originally called it "ContextualizableSelector", but this seemed
> inappropriate since there are already many Context objects around in
> Cocoon. So a better name came which was "SwitchStyleSelector" for its
> analogy with the switch construct in Java, whereas the current Selector
> is more analogous to if/else-if constructs.
>
> So there are two questions :
>
> - do you want this new style of selector ?
> +1
+1
> - do you have a better name than "SwitchStyleSelector" ?
> I personally don't have ;)
>
How about plain "SwitchSelector" for brevity?
Stuart.
Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos)
Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD 65AF
-------------------------------------------------------------------------
Stuart Roebuck stuart.roebuck@adolos.com
Systems Architect Java, XML, MacOS X, XP,
etc.
ADOLOS <http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org