Larry Wall skribis 2005-05-14  9:20 (-0700):
> Possibly.  Or we just define infix .{}. and .[]. variants, or some such.

The problem is that we already have @foo[] meaning the same as @foo, and
an always allowed . that also allows you to put whitespace around it.
This means that %foo.{}.$kv should really just be %foo.kv, if $kv eq
'kv'. I think this won't work well with two dots surrounding {}.
%foo.{}$kv OTOH is currently invalid syntax, so available for
assimilation. Ugly, yes, but I would never suggest actually using this
operator literally -- it's fine to just have it for reduce.

OTOH, reduce probably just needs to be smart enough to understand
postcircumfix. Perhaps whitespace helps, [{ }], in parallel with
&postcircumfix:<{ }>, to avoid a conflict with an infix {}.


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to