develooper Front page | perl.perl6.language | Postings from September 2005

Re: Stringification, numification, and booleanification of pairs

Thread Previous | Thread Next
From:
Juerd
Date:
September 23, 2005 06:49
Subject:
Re: Stringification, numification, and booleanification of pairs
TSa skribis 2005-09-23 15:42 (+0200):
>   1) the circumfix operator " " has an arity >= 1

I think it's parsed, not having specific arity.

>   We have:  "foo" ~ $bar
>   I see: a juxtaposition of two operators and an item,
>          all three separated by whitespace

I can only hope you mean two items and one operator.

> At that point I start to wonder: "What do I know about these three things?"

> >"foo$bar"? And what context does "foo{ $bar }" use?
> We have: "foo$bar"
> I see: a single invocation of operator " " with a string and an item.

I see a shorter way to write "foo" ~ $bar, as implemented by the
circumfix "" operator.

> $TSa.greeting := "HaloO"; # mind the echo!

echo off


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

Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About