Re: z ip

2004-03-29 Thread Piers Cawley
Mark J. Reed [EMAIL PROTECTED] writes:
 I think the ¥(yen) suggestion is great, especially since it does indeed
 look like a zipper. Still, I would very much like an ASCII infix
 alternative for zip().

 I propose z as the ASCII alternative for the infix zip operator (either
 broken bar or yen). With some imagination, it is a good candidate for
 representing interleaving. Besides that, zip() starts with a z so it is
 easy to remember even if you don't think it looks like something that
 zips.

 I think if we go with ¥ for the Unicode operator, the logical choice
 for an ASCII equivalent would be Y.  You could read it as Spanish and,
 if you like. :)

You'll really confuse the deep functional programmers if you do that,
for whom the term 'Y operator' means something very different

-- 
Beware the Perl 6 early morning joggers -- Allison Randal


Re: z ip

2004-03-29 Thread Juerd
Piers Cawley skribis 2004-03-29 16:33 (+0100):
 You'll really confuse the deep functional programmers if you do that,
 for whom the term 'Y operator' means something very different

Probably, but is that a good reason to not use it?

Many Perl 6 things will already really confuse Perl 5 programmers; why
should programmers of languages that aren't even Perl be treated
differently?


Juerd


Re: z ip

2004-03-22 Thread Mark J. Reed
Juerd: your message arrived in my inbox as an attachment due to a mail server
along the way not recognizing the charset value.  It should be utf-8
with the hyphen, not utf8.  Also for that reason all the non-ASCII
characters (like the Yen symbol) came through as '?' here.

 Kara Perlistoj,

And that should be Karaj to agree with the modified noun. :)

 However, the broken bar is in my opinion a bad choice. As some have
 pointed out, because the similarity with |. Historically, 1, l, I and |
 have always aided in obfuscation. Adding a(nother) broken bar to it
 would be a mistake.

I agree here.  Whether | has a break in your font or not, we don't need
yet another tall, skinny character to add to the confusion.  (Although
I doesn't belong on the list.  Anyone using a sans-serif font for
programming purposes completely deserves any confusion that results. :))

 One obvious reason for reaching out to unicode characters is the
 restricted number of non-alphanumeric characters in ASCII. But why do
 infix operators have to be non-alphanumeric? 

They don't - but they do have to look like operators.  Thanks to the
multiplication symbol, lowercase 'x' looks like an operator to many
people.  Most alphanumerics don't.  

 I think the ¥(yen) suggestion is great, especially since it does indeed
 look like a zipper. Still, I would very much like an ASCII infix
 alternative for zip().

 I propose z as the ASCII alternative for the infix zip operator (either
 broken bar or yen). With some imagination, it is a good candidate for
 representing interleaving. Besides that, zip() starts with a z so it is
 easy to remember even if you don't think it looks like something that
 zips.

I think if we go with ¥ for the Unicode operator, the logical choice
for an ASCII equivalent would be Y.  You could read it as Spanish and,
if you like. :)

-Mark


Re: z ip

2004-03-22 Thread James Mastros
Mark J. Reed wrote:
One obvious reason for reaching out to unicode characters is the
restricted number of non-alphanumeric characters in ASCII. But why do
infix operators have to be non-alphanumeric? 
They don't - but they do have to look like operators.  Thanks to the
multiplication symbol, lowercase 'x' looks like an operator to many
people.  Most alphanumerics don't.  
The rule is that, since the infix operator space and the 
sub-without-parens space intermix, and the subs namespace is very 
user-extensible, we shouldn't create places where they're likely to 
intersect and surprise the user.  This is primarily in non-aphenumerics.

Also, users expect operators to look more or less like the ones they 
know, which are funny symbols.  x and xx is a bit of a corner case -- I 
  think it's a bit far, perhaps, but OTOH, x does look like the 
operator people use for this, and if we already have x (and we do), xx 
is reasonable.

I think the ¥(yen) suggestion is great, especially since it does indeed
look like a zipper. Still, I would very much like an ASCII infix
alternative for zip().

I propose z as the ASCII alternative for the infix zip operator (either
broken bar or yen). With some imagination, it is a good candidate for
representing interleaving. Besides that, zip() starts with a z so it is
easy to remember even if you don't think it looks like something that
zips.
I think if we go with ¥ for the Unicode operator, the logical choice
for an ASCII equivalent would be Y.  You could read it as Spanish and,
if you like. :)
I like ¥ for the zip operator.  It looks like a zipper, it's a funny 
symbol, it's latin-1, and it's typeable on my keyboard (altgr-shift-z, 
German xfree86 keyboard).

Japanese users used to having problems with ¥ vs \ may be confused by 
that, but I think it's livable.

I don't think it needs an ASCII equivlient, though -- it isn't /that/ 
useful, and it already has an ASCII equivalent: the zip() function.  Let 
  Y be used by user subs, or as a user operator; it's too likely to 
confuse.


z ip

2004-03-21 Thread Juerd
Kara Perlistoj,

the zip operator is a useful one. I like it a lot. But I've been writing
zip() all the time, even though I think an infix operator is nicer. (Not
for for though, because you also have commas in the pointy sub's
parameter list.)

However, the broken bar is in my opinion a bad choice. As some have
pointed out, because the similarity with |. Historically, 1, l, I and |
have always aided in obfuscation. Adding a(nother) broken bar to it
would be a mistake.

One obvious reason for reaching out to unicode characters is the
restricted number of non-alphanumeric characters in ASCII. But why do
infix operators have to be non-alphanumeric? It has never been a problem
for 'x', has it? And with Perl 6 we even get an infix xx operator.

I think the ?(yen) suggestion is great, especially since it does indeed
look like a zipper. Still, I would very much like an ASCII infix
alternative for zip().

I propose z as the ASCII alternative for the infix zip operator (either
broken bar or yen). With some imagination, it is a good candidate for
representing interleaving. Besides that, zip() starts with a z so it is
easy to remember even if you don't think it looks like something that
zips.


Regards,

Juerd


Re: z ip

2004-03-21 Thread Goplat
--- Juerd [EMAIL PROTECTED] wrote:
 Kara Perlistoj,
 
 the zip operator is a useful one. I like it a lot. But I've been writing
 zip() all the time, even though I think an infix operator is nicer. (Not
 for for though, because you also have commas in the pointy sub's
 parameter list.)
 
 However, the broken bar is in my opinion a bad choice. As some have
 pointed out, because the similarity with |. Historically, 1, l, I and |
 have always aided in obfuscation. Adding a(nother) broken bar to it
 would be a mistake.

I have quite a few fonts, the only one I can find where | is a broken bar is
Terminal, a font for DOS programs that uses the cp437 charset, which is
incompatable with latin1 (« and » are AE and AF instead of AB and BB) and it
dosen't even have a ¦. So, it dosen't seem like a problem.

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html