Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Smylers
Jon Lang writes: > Approaching this with the notion firmly in mind that infix:<..> is > supposed to be used for matching ranges while infix:<...> should be > used to generate series: > > With series, we want C< $LHS ... $RHS > to generate a list of items > starting with $LHS and ending with $RHS.

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Darren Duncan
Darren Duncan wrote: specific, the generic "eqv" operator, or "before" etc would have to be Correction, I meant to say "cmp", not "eqv", here. -- Darren Duncan

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Darren Duncan
Aaron Sherman wrote: 2) The spec doesn't put this information anywhere near the definition of the range operator. Perhaps we can make a note? This was a source of confusion for me. My impression is that a "Range" primarily defines an "interval" in terms of 2 endpoint values such that it define

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Aaron Sherman
OK, there's a lot here and my head is swimming, so let me re-consolidate and re-state (BTW: thanks Jon, you've really helped me understand, here). 1) The spec is somewhat vague, but the proposal that I made for single characters is not an unreasonable interpretation of what's there. Thus, we could

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Mark J. Reed
On Wed, Jul 21, 2010 at 12:04 AM, Jon Lang wrote: > Mark J. Reed wrote: >> Perhaps the syllabic kana could be the "integer" analogs, and what you >> get when you iterate over the range using ..., while the modifier kana >> would not be generated by the series  ア ... ヴ but would be considered >> in

Parrot 2.6.0 "Red-rumped" supported release.

2010-07-20 Thread Will Coleda
What we call the beginning is often the end And to make an end is to make a beginning. The end is where we start from.   —T. S. Eliot, Four Quartets On behalf of the Parrot team, I'm happy to announce Parrot 2.6.0 "Red-rumped." Parrot (http://parrot.org/) is a virtual machine aimed at running al

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Jon Lang
Mark J. Reed wrote: > Perhaps the syllabic kana could be the "integer" analogs, and what you > get when you iterate over the range using ..., while the modifier kana > would not be generated by the series  ア ... ヴ but would be considered > in the range  ア .. ヴ?  I wouldn't object to such script-spe

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Mark J. Reed
On Tue, Jul 20, 2010 at 11:28 PM, Aaron Sherman wrote: > So, what's the intention of the range operator, then? ... is a generator that lazily enumerates a series. .. is a constructor for a Range object. They're two different things, with different behaviors. In particular, consider that pi ~~

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Jon Lang
Aaron Sherman wrote: > So, what's the intention of the range operator, then? Is it just there to > offer backward compatibility with Perl 5? Is it a vestige that should be > removed so that we can Huffman ... down to ..? > > I'm not trying to be difficult, here, I just never knew that ... could > o

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Jon Lang
Approaching this with the notion firmly in mind that infix:<..> is supposed to be used for matching ranges while infix:<...> should be used to generate series: Aaron Sherman wrote: > Walk with me a bit, and let's explore the concept of intuitive character > ranges? This was my suggestion, which se

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Aaron Sherman
Side note: you could get around some of the problems, below, but in order to do so, you would have to exhaustively express all of Unicode using the Str builtin module's RANGES constant. In fact, as it is now, it defines ASCII lowercase, but doesn't define Latin lowercase. Presumably because doing s

Re: r31777 -[S32/Temporal] Reverted DateTime back to being mutable. I think we ought to make a big change like this only after reaching some kind of consensus to do so, not least because I just impl

2010-07-20 Thread Mark J. Reed
Well, then, let's start building that consensus. I firmly believe DateTimes should definitely be value types, immutable. Otherwise you can't use them for hash keys, for one thing. Note that timestamps in Perl have always been values; it's just that they used to be specifically integers, whose va

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Solomon Foster
On Tue, Jul 20, 2010 at 10:00 PM, Jon Lang wrote: > Solomon Foster wrote: >> Ranges haven't been intended to be the "right way" to construct basic >> loops for some time now.  That's what the "..." series operator is >> for. >> >>    for 1e10 ... 1 -> $i { >>         # whatever >>    } >> >> is la

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Jon Lang
Solomon Foster wrote: > Ranges haven't been intended to be the "right way" to construct basic > loops for some time now.  That's what the "..." series operator is > for. > >    for 1e10 ... 1 -> $i { >         # whatever >    } > > is lazy by the spec, and in fact is lazy and fully functional in >

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Solomon Foster
On Tue, Jul 20, 2010 at 7:31 PM, Aaron Sherman wrote: > 2) We deny that a range whose LHS is "larger" than its RHS makes sense, but > we also don't provide an easy way to construct such ranges lazily otherwise. > This would be annoying only, but then we have declared that ranges are the > right wa

Re: r31777 -[S32/Temporal] Reverted DateTime back to being mutable. I think we ought to make a big change like this only after reaching some kind of consensus to do so, not least because I just implem

2010-07-20 Thread Darren Duncan
pugs-comm...@feather.perl6.nl wrote: Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: [S32/Temporal] Reverted DateTime back to being mutable. I think we ought to make a big change like this only after reaching some kind of consensus to do so, not least because I just implement

r31777 -[S32/Temporal] Reverted DateTime back to being mutable. I think we ought to make a big change like this only after reaching some kind of consensus to do so, not least because I just implemente

2010-07-20 Thread pugs-commits
Author: Kodi Date: 2010-07-21 02:12:24 +0200 (Wed, 21 Jul 2010) New Revision: 31777 Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: [S32/Temporal] Reverted DateTime back to being mutable. I think we ought to make a big change like this only after reaching some kind of consensus

Re: Suggested magic for "a" .. "b"

2010-07-20 Thread Aaron Sherman
This is a long reply, but I read it over a few times, and I don't see any fat to trim. This isn't really a simple issue for which intuition is going to be a sufficient guide, though I agree fully that it needs to be high on or at the top of the list. On Sun, Jul 18, 2010 at 6:26 AM, Moritz Lenz w

Re: r31776 -[S32/Temporal] Make DateTime immutable.

2010-07-20 Thread Mark J. Reed
On Tue, Jul 20, 2010 at 5:51 PM, wrote: > +C objects are immutables. > + I think just the adjective works better here ("are immutable")... but more to the point: > +A C can also be created by modifying an existing object: It's mildly confusing to say they're immutable and then turn around and

r31776 -[S32/Temporal] Make DateTime immutable.

2010-07-20 Thread pugs-commits
Author: dolmen Date: 2010-07-20 23:51:26 +0200 (Tue, 20 Jul 2010) New Revision: 31776 Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: [S32/Temporal] Make DateTime immutable. Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod

Re: [perl #76544] State variables are not yet implemented

2010-07-20 Thread Nicholas Clark
On Fri, Jul 16, 2010 at 06:37:41PM -0700, Tyler Curtis wrote: > At parrot r48099, with Rakudo version Kiev-272-gdd8d5d7, "state" > variables are not implemented. > However, Rakudo version Kiev-272-gdd8d5d7 produces the following error > message: > > ===SORRY!=== > Symbol '$c' not predeclared in

r31773 -Fix minor typo

2010-07-20 Thread pugs-commits
Author: tene Date: 2010-07-20 20:35:35 +0200 (Tue, 20 Jul 2010) New Revision: 31773 Modified: docs/Perl6/Spec/S03-operators.pod Log: Fix minor typo Modified: docs/Perl6/Spec/S03-operators.pod === --- docs/Perl6/Spec/S03-operators.

[perl #71846] currying of prefix: operator with !whatever_closure

2010-07-20 Thread jn...@jnthn.net via RT
On Mon Jan 04 16:40:58 2010, dave.wh...@gmail.com wrote: > By principle of least surprise, all three of these should result in > the same output: > > rakudo: say (0,1).grep: {!($^x%2)} > rakudo db84bc: 0 > > rakudo: say (0,1).grep: !(*%2) > rakudo db84bc: #{empty-list} > > rakudo: say (0,1)

[perl #74348] [BUG] LTA error message when a where block fails in a subtype during single dispatch in Rakudo

2010-07-20 Thread jn...@jnthn.net via RT
On Tue Apr 13 08:51:39 2010, masak wrote: > rakudo: subset Foo of Array where { .elems == 5 }; sub bar(Foo > $_) {}; bar([1,2,3]) > rakudo cb4521: OUTPUT«Nominal type check failed for parameter > '$_'; expected Array but got Array instead [...] > * masak submits rakudobug > it's not the nominal

[perl #74350] [BUG] Using the all() junction constructor together with smartmatching doesn't work in Rakudo

2010-07-20 Thread jn...@jnthn.net via RT
On Tue Apr 13 09:02:12 2010, masak wrote: > rakudo: class G {}; subset A of Array where { all(|$_) ~~ G }; > say [G.new, G.new, G.new] ~~ A > rakudo 3b5a79: OUTPUT«0␤» > :( > rakudo: say all(42) ~~ Int > rakudo 3b5a79: OUTPUT«0␤» > maybe junctional smartmatching simply isn't in place yet. Ti

[perl #76574] [BUG] Int ~~ Num is True in Rakudo; shouldn't be

2010-07-20 Thread jn...@jnthn.net via RT
On Mon Jul 19 09:25:15 2010, masak wrote: > rakudo: say Int ~~ Num > rakudo cf5f19: OUTPUT«1␤» > die die die! > Int isn't a Num? > mathw: Not any more > It's a Numeric > And we go to quite a length to make Int pretend it's a Num. > Almost certain it shouldn't be these days though. > * masak

[perl #76574] [BUG] Int ~~ Num is True in Rakudo; shouldn't be

2010-07-20 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76574] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76574 > rakudo: say Int ~~ Num rakudo cf5f19: OUTPUT«1␤» die die die! Int isn't a Num? math

[perl #76584] Method list returned by .can() not stringifying

2010-07-20 Thread via RT
# New Ticket Created by Audrey Tang # Please include the string: [perl #76584] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76584 > # Fails: get_string() not implemented in class 'P6Invocation' class C { method M {} }; sa

[perl #76140] [PATCH] Nested * currying implemented

2010-07-20 Thread jn...@jnthn.net via RT
On Sun Jul 18 23:16:41 2010, moritz wrote: > I've rebased the patch to cleanly apply to current rakudo HEAD, no > functional changes. > > (I don't feel qualified to review this patch, but I hope that jnthn gets > around to it soon) I reviewed it and moritz++ applied it earlier on with a tweak. So

[perl #76112] [BUG] wrong line number when calling an attribute method with too many arguments

2010-07-20 Thread jn...@jnthn.net via RT
On Sat Jun 26 02:34:03 2010, moritz wrote: > 11:29 * moritz_ has a case of totally wrong line number > 11:29 <@jnthn> OH NOES > 11:29 <@jnthn> moritz_: How rong is rong? > 11:29 <@moritz_> jnthn: line 67 for a 30 line file > 11:29 <@jnthn> lol > 11:30 <@moritz_> rakudo: class A { has $.x is rw };

[perl #74866] [BUG] LTA error message on an unrecognized declarator

2010-07-20 Thread jn...@jnthn.net via RT
On Mon May 03 02:19:31 2010, stefa...@cox.net wrote: > 02:07 < sorear> rakudo: module Soric4::Event; macro foo is parsed( 0 ) { } > 02:07 <+p6eval> rakudo c4857a: OUTPUT«Confused at line 11, near "module > Sor"␤current instr.: 'perl6;HLL;Grammar;panic' pc 500 > (ex

[perl #75846] [BUG] > < 1 2 3 >.map: 2 ~ * ~ 2 # No candidates found to invoke

2010-07-20 Thread jn...@jnthn.net via RT
On Fri Jun 18 00:34:24 2010, cognominal wrote: > I am not sure how much * is supposed to DWIM > More than it was. When you submitted: > > < 1 2 3 >.map: * ~ 2 > 12 22 32 > > < 1 2 3 >.map: 2 ~ * ~ 2 > No candidates found to invoke > > > > (*+1)(1) > 2 > > > > (*+*)(1,2) > 3 > > (*+*+*)(1,2,3)