Re: String Theory

2005-03-28 Thread Larry Wall
On Mon, Mar 28, 2005 at 11:53:07AM -0500, Chip Salzenberg wrote: : According to Larry Wall: : > On Fri, Mar 25, 2005 at 07:38:10PM -, Chip Salzenberg wrote: : > : And might I also ask why in Perl 6 (if not Parrot) there seems to be : > : no type support for strings with known encodings which ar

Re: String Theory

2005-03-28 Thread Chip Salzenberg
According to Larry Wall: > On Fri, Mar 25, 2005 at 07:38:10PM -, Chip Salzenberg wrote: > : And might I also ask why in Perl 6 (if not Parrot) there seems to be > : no type support for strings with known encodings which are not subsets > : of Unicode? > > Well, because the main point of Unicod

Re: String Theory

2005-03-26 Thread Larry Wall
On Fri, Mar 25, 2005 at 07:38:10PM -, Chip Salzenberg wrote: : Would this be a good time to ask for explanation for C being : never Unicode, while C is always Unicode, thus leading to an : inability to box a non-Unicode string? As Rod said, "str" is just a way of declaring a byte buffer, for w

Re: String Theory

2005-03-26 Thread Rod Adams
Chip Salzenberg wrote: Would this be a good time to ask for explanation for C being never Unicode, while C is always Unicode, thus leading to an inability to box a non-Unicode string? That's not quite it. C is a forced Unicode level of "Bytes", with encoding "raw", which happens to not have any

Re: String Theory

2005-03-26 Thread Chip Salzenberg
Would this be a good time to ask for explanation for C being never Unicode, while C is always Unicode, thus leading to an inability to box a non-Unicode string? And might I also ask why in Perl 6 (if not Parrot) there seems to be no type support for strings with known encodings which are not subse

Re: String Theory

2005-03-19 Thread Rod Adams
Larry Wall wrote: You've more or less described the semantics available at the "use bytes" level, which basically comes down to a pure OO approach where the user has to be aware of all the types (to the extent that OO doesn't hide that). It's one approach to polymorphism, but I think it shortchang

Re: String Theory

2005-03-19 Thread Larry Wall
On Sat, Mar 19, 2005 at 05:07:49PM -0600, Rod Adams wrote: : I propose that we make a few decisions about strings in Perl. I've read : all the synopses, several list threads on the topic, and a few web : guides to Unicode. I've also thought a lot about how to cleanly define : all the string related

Re: String Theory

2005-03-19 Thread Rod Adams
It's been pointed out to me that A12 mentions: Coercions to other classes can also be defined: multi sub *coerce:as (Us $us, Them ::to) { to.transmogrify($us) } Such coercions allow both explicit conversion: $them = $us as Them; as well as implicit conversions: my Them $them = $us; I read