Re: use English

2005-04-28 Thread gcomnz
Aaron Sherman wrote: > As a side note, I'd like to suggest that "English" is just rubbing > people's noses in the fact that they're not allowed to program in their > native tongue. "Names" might be less in-your-face. Why are we even having to say use English or Names or whatever? Why not just ma

Re: <[]> ugly and hard to type

2005-04-16 Thread gcomnz
> I never liked character sets. They introduced yet another exception to > the parsing rules, and it irked me. If it weren't for the need to > optimize character sets, I'd prefer to be Pythonized into using @{'a' > .. 'z'} Isn't that just a digression into the bad old pre-internationalized days. U

Comparing rationals/floats

2005-04-15 Thread gcomnz
More questions stemming from cookbook work... Decimal Comparisons: The most common recipe around for comparisons is to use sprintf to cut the decimals to size and then compare strings. Seems ugly. The non-stringification way to do it is usually along the lines of: if (abs($value1 - $value2) < a

Re: trim() and words() functions?

2005-04-12 Thread gcomnz
> I agree, with my (probably wrong) impression that words() was a "split > a string into words" function, I was thinking to myself bloat, but > then I was also reminding myself that Perl's power as a natural > language text processor has always been a premium feature (somehow > even prior to full U

Re: trim() and words() functions?

2005-04-12 Thread gcomnz
> Rod Adams wrote: > Well, some form of words() exists... only spelled q:w//, with various > doublings of q and w available, some of which can be spelled <> or «», > though to be honest, I've lost track of how often the meanings of those > as quoters has changed. I suspect S02 or S03 would have th

trim() and words() functions?

2005-04-12 Thread gcomnz
Hey all, not sure if I'm just missing some obvious source of information, but I used trim() as a function in a cookbook example, then realized that it's not even in S29... There is a brief mention of trim(), as well as words() (odd as the words() function may seem, to me at least), at http://tinyu

Re: Question about list context for String.chars

2005-04-11 Thread gcomnz
> > > However, I do like the idea of treating a string as an array of chars. I > > > remember some discussion a while back about making [] on strings do > > > something useful (but not the same thing as C), but I forget how > > > it ended, and my brain is too fried to go hunt it down. But overall I

Re: Question about list context for String.chars

2005-04-11 Thread gcomnz
> Rod wrote: > However, I do like the idea of treating a string as an array of chars. I > remember some discussion a while back about making [] on strings do > something useful (but not the same thing as C), but I forget how > it ended, and my brain is too fried to go hunt it down. But overall I >

Here documents as positional parameters to a function call

2005-04-11 Thread gcomnz
Hey all, more pleac conversion questions: I can't prove with the docs that a heredoc will continue to work as positional params to a function call, particularly where it's not the first param: die "Couldn't send mail" unless send_mail <

Re: Question about list context for String.chars

2005-04-11 Thread gcomnz
> > "abc".chars would return , which I'm guessing would be > > bytesize usually. > > Fair enough. > > > "日本語".chars would return <[EMAIL PROTECTED]@語>, which can probably be > > expressed with > > UTF8? > > I think you're confusing UTF8 (which can represent ALL Unicode > characters) and "the U

Re: Question about list context for String.chars

2005-04-11 Thread gcomnz
uot;, "ï" from)? Any Arabic speakers to > confirm or deny this behavior of ligatures? From Apocalyps 5: "Under level 2 Unicode support, a character is assumed to mean a grapheme, that is, a sequence consisting of a base character followed by 0 or more combining characters."

Question about list context for String.chars

2005-04-11 Thread gcomnz
Hi all, I'm writing a bunch of examples for perl 6 pleac and it seems rather natural to expect $string.chars to return a list of unicode chars in list context, however I can't find anything to confirm that. (The other alternatives being split and unpack.) # unpack @array = unpack("C*", $string);

Re: (pugs) Managing pleac

2005-04-09 Thread gcomnz
, in this case). That said, svn is probably fine...just my two cents. Marcus On 4/9/05, Autrijus Tang <[EMAIL PROTECTED]> wrote: > On Sat, Apr 09, 2005 at 10:17:12PM -0600, Luke Palmer wrote: > > gcomnz writes: > > > I'd really like to contribute, but I'm wonder

Re: (pugs) Managing pleac

2005-04-09 Thread gcomnz
I'd really like to contribute, but I'm wondering if for the first phase a wiki would help the community pull together the best practice for each recipe? I'm thinking mediawiki style, where there's a discussion page attached to each wiki page. Would it help the conversation progress quickly (and gro

Re: [Fwd: Re: [RFC] A more extensible/flexible POD (ROUGH-DRAFT)]

2005-03-17 Thread gcomnz
On Thu, 17 Mar 2005 16:16:00 -0700, gcomnz <[EMAIL PROTECTED]> wrote: Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: >By the way, I think I've seen a few people suggest some sort of >syntax-switching mechanism for "Pod6". The day people have t