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

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;

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. C works > based on sequential examination of the target string to locate > matching substrings on which to split.

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 l

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: (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 do

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

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

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 geometri

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 inde

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: 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 struc

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 th

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

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 s

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.

Re: Time::Local

2005-08-16 Thread Mark Reed
On 2005-08-16 12:39, "Brano Tich‡" <[EMAIL PROTECTED]> wrote: > A related question: > I think it was stated, that the time will be some floating-point number. > Will its precision be predetermined or will it be system-dependent? > (Or maybe the precision is no-issue -- it could be important in comp

Re: Ambiguity of parsing numbers with underscores/methods

2005-08-16 Thread Mark Reed
On 2005-08-16 16:45, "Nicholas Clark" <[EMAIL PROTECTED]> wrote: > To me, 1.e5 is not ambiguous. But maybe I've had too much dealing with > floating point in a previous life. 1e5 is not ambiguous. 1.0e5 is not ambiguous, just overprecise. 1.e5 is ambiguous. > I'd find it hard defending a langu

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'

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 repe

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_st

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: '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-ta

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?!?

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 n

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

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
=> [[1, 4, 7], [2, 5, 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: 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 lo

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

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 iden

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 <日

Re: nbsp in \s, 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

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 distin

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 th

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 r

Re: Open and pipe

2005-05-02 Thread Mark Reed
I take some of that back ­ actually, left-to-right directionality has almost nothing to do with understanding the < and > symbols. The arrow points in the direction information is flowing, which is left-to-right for > but right-to-left for <. I mean, ³>filename² is pointing at the file, so the i

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 inst