Re: split on empty string

2006-01-18 Thread Mark Reed
On 2006-01-18 10:04 AM, David K Storrs [EMAIL PROTECTED] wrote: Just to show opposite, I've always found that behavior (i.e. returning the original string unchanged) confusing. Csplit works based on sequential examination of the target string to locate matching substrings on which to split.

Re: split on empty string

2006-01-17 Thread Mark Reed
On 2006-01-17 12:24 PM, Gaal Yahas [EMAIL PROTECTED] wrote: While cleaning up tests for release: .split(':')= ()# Perl 5 (,) # pugs Which is correct? It doesn's seem to be specced yet. I would prefer the current pugs behavior; it's consistent

Re: Perl6 perlplexities [was: Re: $1 change issues...]

2005-11-07 Thread Mark Reed
On 2005-11-07 1:30 PM, Andrew Rodland [EMAIL PROTECTED] wrote: Especially when that complexity isn't optional. I think that's really a common fear, that Perl 6 is going well beyond that point of sensibility. If you want to get into personal beliefs, I think that function signatures are such

Re: Pronouns [Re: $_ defaulting for mutating ops]

2005-10-25 Thread Mark Reed
On 2005-10-25 11:17 AM, Michele Dondi [EMAIL PROTECTED] wrote: I find $__ confusing, and prefer $OUTER::_, which already exists. Hmmm... maybe you're right that $__ is too huffmanized (and hence confusing) but $OUTER::_ is somewhat too few... What's confusing about $__ is that it looks too

Re: Y [was: Re: new sigil]

2005-10-21 Thread Mark Reed
Speaking of which, the advantage of, say, « over is that the former is _one_ character. But Y, compared to ¥, is one character only as well, and is even more visually distinctive with most fonts I know of, afaict, so is there any good reason to keep the latter as the official one?!? I can't

Re: new sigil

2005-10-21 Thread Mark Reed
On 2005-10-21 10:10 AM, Steve Peters [EMAIL PROTECTED] wrote: I saying that, since my up-to-date version of vi on my up-to-date OpenBSD can't type, much less even allow me to paste in, a Latin-1 character, this is an issue. If you're using stock vi rather than vim or elvis or at least nvi,

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-21 Thread Mark Reed
On 2005-10-21 1:54 PM, Nate Wiger [EMAIL PROTECTED] wrote: BTW, C and PHP both use - still. C++ is probably more relevant than C, but since it inherited the syntax, same diff. But in their case the underlying form is still a dot; A-B is just syntactic sugar for (*A).B. The distinction involved

Slightly OT: zip() for Perl5?

2005-10-21 Thread Mark Reed
Is there a CPAN module which provides the functionality of ¥/zip() for Perl5? I don't see anything obvious in the Bundle::Perl6 stuff. Not hard to write, of course, just wondering if it's been done . . .

Zip more than two arrays?

2005-10-21 Thread Mark Reed
, 8], [3, 6, 9]] How would you write the above in Perl6, given that ¥/Y is an infix operator? On 2005-10-21 5:32 PM, Mark Reed [EMAIL PROTECTED] wrote: Is there a CPAN module which provides the functionality of ¥/zip() for Perl5?

Re: 'self' and .foo (was: Re: Re(vised): Proposal to make class method non-inheritable)

2005-10-17 Thread Mark Reed
On 2005-10-15 15:28, Ilmari Vacklin [EMAIL PROTECTED] wrote: On Sat, Oct 15, 2005 at 09:49:30AM -0700, Larry Wall wrote: On Sat, Oct 15, 2005 at 07:39:36PM +0300, wolverian wrote: : IMHO just call it self (by default) and be done with it. :) Let it be so. Somewhat off-tangent: does this

Re: Sane (less insane) pair semantics

2005-10-10 Thread Mark Reed
On 2005-10-10 13:36, Ingo Blechschmidt [EMAIL PROTECTED] wrote: Under the proposal, a Pair object doesn't have any special magic Right. So under this proposal, the key = value syntax is overloaded: in some contexts it creates a Pair object, and in others it assigns a value to a named

Re: Stringification, numification, and booleanification of pairs

2005-09-23 Thread Mark Reed
On 2005-09-23 06:08, Juerd [EMAIL PROTECTED] wrote: In my opinion, making the string value in interpolation different from the value in Str context is madness. Hear, hear! I agree 100%. This is another place where we should move the Rubyometer down rather than up, I think (to_s vs. to_str,

Re: conditional wrapper blocks

2005-09-21 Thread Mark Reed
On 2005-09-21 03:53, Yuval Kogman [EMAIL PROTECTED] wrote: On Tue, Sep 20, 2005 at 21:09:09 +0200, Juerd wrote: Mark Reed skribis 2005-09-20 14:31 (-0400): This has so little redundancy that it makes very little sense to want to avoid repeating that very short encode_entities($item-label

Re: conditional wrapper blocks

2005-09-20 Thread Mark Reed
On 2005-09-20 14:23, Yuval Kogman [EMAIL PROTECTED] wrote: On Tue, Sep 20, 2005 at 18:19:42 +, [EMAIL PROTECTED] wrote: 2: if the middle part does something that changes the value of the expression $condition then the new construct again has a different meaning. Err, that's the point

Re: Time::Local

2005-08-15 Thread Mark Reed
On 2005-08-15 10:07, Nicholas Clark [EMAIL PROTECTED] wrote: Spain adopted the Gregorian Calendar in 1582. Surely setting my locale to Spain should make the Julian/Gregorian jump show up in 1582, not 1752? Arguably so, but I don't think there's anywhere in the POSIX localization data structures

Re: Time::Local

2005-08-15 Thread Mark Reed
On 2005-08-15 13:07, Mark A. Biggar [EMAIL PROTECTED] wrote: 3) use Astronomical Dates which are kept as the number of days sense noon Jan-1-4713 BC. More specifically, that's the astronomical Julian Day, or JD, and JD 0 began at noon Universal Time (a.k.a. GMT) on January 1, 4713 BC in the

Re: Time::Local

2005-08-15 Thread Mark Reed
On 2005-08-15 15:04, Doug McNutt [EMAIL PROTECTED] wrote: At 13:31 -0400 8/15/05, Mark Reed wrote: If anyone gets serious about Julian dates there is also the Modified Julian Date, MJD, used by the US military and others. It differs from the JAD above by a large well-defined integer plus 1/2

Re: Time::Local

2005-08-15 Thread Mark Reed
On 2005-08-15 13:56, Larry Wall [EMAIL PROTECTED] wrote: I'm personally rooting for everyone to abandon leap seconds for civil time. While you're at it, why not wish for DST to go away (or to become permanent year-round, whichever)? Heck, toss in world peace, too. :) But POSIX stretchy

Re: Time::Local

2005-08-15 Thread Mark Reed
On 2005-08-15 13:56, Larry Wall [EMAIL PROTECTED] wrote: Perl 6 will natively think of dates as number of floating point TAI seconds from the year 2000. You can build any kind of date interface on top of that, but we're going for simplicity and predictability. I applaud that decision. I just

Re: Perl 6 Meta Object Protocols and $object.meta.isa(?)

2005-08-08 Thread Mark Reed
Coming in late here, but it seems odd to have an actual class called MetaClass. The meta-object protocols with which I am familiar have the concept of a metaclass (a class whose instances are themselves classes), and the class Class is such a metaclass, but where does a class named MetaClass fit

Re: $pair[0]?

2005-08-05 Thread Mark Reed
Seems like you left out the degenerate case for when you run out of pairs: sub infix:!! (Scalar $x, 0) { $x } On 2005-08-05 16:24, Yuval Kogman [EMAIL PROTECTED] wrote: On Fri, Aug 05, 2005 at 11:36:16 -0700, Larry Wall wrote: There's something to be said for having a way of indexing

Re: MML dispatch

2005-07-12 Thread Mark Reed
On 2005-07-11 23:46, Damian Conway [EMAIL PROTECTED] wrote: 3. Work out the Manhattan distance from the argument list to each variant's parameter list. OK, sorry if I missed this in an earlier discussion. For purposes of calculating this Manhattan distance, I gather that we're

Re: MML dispatch

2005-07-12 Thread Mark Reed
On 2005-07-12 12:22, TSa (Thomas Sandlaß) [EMAIL PROTECTED] wrote: I am also interested in the rationale behind the approach to manage MMD my means of a metric instead of a partial order on the types. Metric is a geometric concept which in my eyes doesn't fit type theory. The geometric

Re: mod/div

2005-05-31 Thread Mark Reed
On 2005-05-30 05:15, TSa (Thomas Sandlaß) [EMAIL PROTECTED] wrote: Mark Reed wrote: I would really like to see ($x div $y) be (floor($x/$y)) That is: floor( 8 / (-3) ) == floor( -2. ) == -3 Or do you want -2? and ($x mod $y) be ($x - $x div $y). Hmm, since 8 - (-3) == 11

Re: (1,(2,3),4)[2]

2005-05-25 Thread Mark Reed
[1,2,3] is not an array or a list. It is a reference to an anonymous array. It is not 3 values; it¹s 1 value, which happens to point to a list of size 3. If you assign that to an array via something like @a = [1,2,3], I would expect at least a warning and possibly a compile-time error. If it

Re: (1,(2,3),4)[2]

2005-05-25 Thread Mark Reed
On 2005-05-25 13:54, Juerd [EMAIL PROTECTED] wrote: 3. If you assign that to an array via something like @a = [1,2,3], I would expect at least a warning and possibly a compile-time error. If it does work, it probably gets translated into @a = ([1,2,3]), which That's not a

Re: mod/div (was: reduce metaoperator on an empty list)

2005-05-23 Thread Mark Reed
I would really like to see ($x div $y) be (floor($x/$y)) and ($x mod $y) be ($x - $x div $y). If the divisor is positive the modulus should be positive, no matter what the sign of the dividend. Avoids lots of special case code across 0 boundaries. On 2005-05-23 18:49, TSa (Thomas Sandlaß)

Re: Nested captures

2005-05-17 Thread Mark Reed
On 2005-05-17 14:14, Peter Haworth [EMAIL PROTECTED] wrote:\ Does numbering of captures after an alternation continue as if the alternative with the most captures matched? # $1$1 $2$3, even if (a) matched rx/ [ (a) | (b) (c) ] (d) /; I thought that was still like

Re: Open and pipe

2005-05-02 Thread Mark Reed
On 2005-05-02 15:52, Juerd [EMAIL PROTECTED] wrote: Gaal Yahas skribis 2005-05-02 22:25 (+0300): open 'ls', '|-'; # or even open 'ls', :pipe = 'from' I dislike the hard-to-tell-apart symbols '' and '' for modes. 'r' and 'w' are much easier, and get rid of the awful

Re: Open and pipe

2005-05-02 Thread Mark Reed
the information is flowing into the file; ³filename² is pointing away from the file, so the info is flowing out of it. I don¹t see how it could be any clearer than that. On 2005-05-02 16:13, Mark Reed [EMAIL PROTECTED] wrote: On 2005-05-02 15:52, Juerd [EMAIL PROTECTED] wrote: Gaal Yahas skribis 2005

Re: Open and pipe

2005-05-02 Thread Mark Reed
On 2005-05-02 16:35, Juerd [EMAIL PROTECTED] wrote: What are the characters around the code supposed to be, by the way? Your mailer tells my mailer that you're sending iso-8859-1, but I seriously doubt that. Argh. Bad Entourage, no biscuit. Back to Mail as soon as I get Tiger installed,

Re: Adding Complexity

2005-04-28 Thread Mark Reed
Jonathan Lang wrote: When you take the square root of a number, you actually get one of two possible answers (for instance, sqrt(1) actually gives either a 1 or a -1). Not quite. It¹s true that there are two possible square roots of any given number, but sqrt(1) is defined as the

Re: invocant vs. topic (was: Re: -X's auto-(un)quoting?)

2005-04-26 Thread Mark Reed
I¹m only an amateur linguist, but from a linguistic point of view, there are several related terms in this space. The term ³subject² has many meanings in English, including ³topic². But from a grammatical and linguistic standpoint, there are only two meanings of ³subject², and ³topic² is a

Re: -X's auto-(un)quoting?

2005-04-22 Thread Mark Reed
Anyway, is there any other URI scheme besides for mailto: that doesn't use ://? It¹s optional for news:; news:comp.lang.perl is a valid URI for accessing that Usenet newsgroup via whatever your default news server is. There aren¹t any slashes in the aim: scheme (not part of the IANA

Re: nbsp in \s, ?ws and

2005-04-15 Thread Mark Reed
I thought we had just established that nbsp is not in Unicode¹s definition of whitespace. So why should \s match it? On 2005-04-15 18:56, Larry Wall [EMAIL PROTECTED] wrote: On Sat, Apr 16, 2005 at 12:46:47AM +0200, Juerd wrote: : Larry Wall skribis 2005-04-15 15:38 (-0700): : : Do \s and

Re: Whither use English?

2005-04-11 Thread Mark Reed
On 2005-04-11 15:00, Juerd [EMAIL PROTECTED] wrote: I'm not even sure I like the *possibility* of using non-ascii letters in identifiers, even. I agree that it would be a nightmare if project A used presu instead of print everywhere, while project B used toon, etc. But non-ASCII

Re: Question about list context for String.chars

2005-04-11 Thread Mark Reed
On 2005-04-11 15:40, gcomnz [EMAIL PROTECTED] wrote: .chars would return [EMAIL PROTECTED]@, which can probably be expressed with UTF8? The string is probably represented internally as UTF-8, but that should have no effect on what .chars returns, which should, indeed, be [EMAIL PROTECTED],

Re: :=: (OT)

2005-04-04 Thread Mark Reed
:set encoding=utf8 :set fileencoding=utf8 The first controls the display, the second file saves. Vim has to have been compiled with multibyte support, though. From: Aaron Sherman [EMAIL PROTECTED] Date: Mon, 4 Apr 2005 17:01:58 -0400 To: Larry Wall [EMAIL PROTECTED] Cc: Perl6 Language List