Re: Perl as a better web language ?

2008-12-14 Thread Timothy S. Nelson
On Sat, 13 Dec 2008, Dan Stephenson wrote: Wouldn't HTML::Mason ( or something like it ) be a better approach to solving this problem in Perl6?  I'm a huge Mason fan and feel it answers the use cases being stated here aptly.  Something like this could be included in this "diamond" Perl6 distro

[perl #61364] sort() should implement a stable sort

2008-12-14 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #61364] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61364 > S29 says: : If all criteria are exhausted when comparing two elements, sort should : ret

Re: List.end - last item and last index mixing

2008-12-14 Thread Moritz Lenz
Moritz Lenz wrote: > From S29: > > : =item end > : > : our Any method end (@array: ) is export > : > : Returns the final subscript of the first dimension; for a one-dimensional > : array this simply the index of the final element. For fixed dimensions > : this is the declared maximum subscript.

Re: r24325 - docs/Perl6/Spec

2008-12-14 Thread Moritz Lenz
Uri Guttman wrote: >> "p" == pugs-commits writes: > > p> This document attempts to document the list of builtin functions in > Perl 6. > p> It assumes familiarity with Perl 5 and prior synopses. > p> @@ -870,6 +870,10 @@ > p> comparisons. C<@by> differs from C<$by> in that each c

Re: Perl as a better web language ?

2008-12-14 Thread Richard Hainsworth
Marc Chantreux wrote: On Sat, Dec 13, 2008 at 01:34:44PM +1100, Timothy S. Nelson wrote: On Sat, 13 Dec 2008, howard chen wrote: What I think is more likely to happen in reality is that people will make various Perl6 "distros", ie. the Perl6 core + whatever modules are suitable to the pu

r24368 - docs/Perl6/Spec

2008-12-14 Thread pugs-commits
Author: moritz Date: 2008-12-14 21:18:22 +0100 (Sun, 14 Dec 2008) New Revision: 24368 Modified: docs/Perl6/Spec/S29-functions.pod Log: [S29] small clarification of @list.end Modified: docs/Perl6/Spec/S29-functions.pod === --- doc

Re: .kv

2008-12-14 Thread Patrick R. Michaud
On Sun, Dec 14, 2008 at 11:55:54PM +1000, Илья wrote: > (23:24:09) ihrd: hi > (23:24:28) ihrd: question about .kv > (23:24:39) ihrd: rakudo: my @a = {a => 1}, {b =>2}; my %h = foo => @a; > say %h.kv.perl; > (23:24:41) p6eval: rakudo 33880: OUTPUT[["foo", {"a" => 1}, {"b" => 2}]␤] > (23:24:59) ihrd:

Re: .kv

2008-12-14 Thread Carl Mäsak
Илья (>): > (23:24:28) ihrd: question about .kv > (23:24:39) ihrd: rakudo: my @a = {a => 1}, {b =>2}; my %h = foo => @a; > say %h.kv.perl; > (23:24:41) p6eval: rakudo 33880: OUTPUT[["foo", {"a" => 1}, {"b" => 2}]␤] > (23:24:59) ihrd: rakudo: say ({ foo => [{a=>1}, {b=>1}]}).perl; > (23:25:02) p6eva

Re: [perl #61308] rule's capture ws

2008-12-14 Thread Chris Dolan
On Dec 13, 2008, at 3:44 AM, Moritz Lenz wrote: Martin Kjeldsen (via RT) wrote: # New Ticket Created by Martin Kjeldsen # Please include the string: [perl #61308] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61308 > Whe

Re: [perl #61308] rule's capture ws

2008-12-14 Thread Moritz Lenz
Martin Kjeldsen (via RT) wrote: > # New Ticket Created by Martin Kjeldsen > # Please include the string: [perl #61308] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=61308 > > > > When using rules at least with overwri

.kv

2008-12-14 Thread Илья
(23:24:09) ihrd: hi (23:24:28) ihrd: question about .kv (23:24:39) ihrd: rakudo: my @a = {a => 1}, {b =>2}; my %h = foo => @a; say %h.kv.perl; (23:24:41) p6eval: rakudo 33880: OUTPUT[["foo", {"a" => 1}, {"b" => 2}]␤] (23:24:59) ihrd: rakudo: say ({ foo => [{a=>1}, {b=>1}]}).perl; (23:25:02) p6eval:

[perl #61354] Rakudo segfaults when trying to define a method inside an eval in a class

2008-12-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61354] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61354 > Rakudo r33860 dies when an eval inside a class contains a method declaration. $ cat inj

[perl #61350] Method declarations and nested classes don't collaborate well

2008-12-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61350] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61350 > In Rakudo r33860, the following happens when you try to put a method in an outer class a

[svn:parrot-pdd] r33876 - trunk/docs/pdds

2008-12-14 Thread tene
Author: tene Date: Sun Dec 14 02:01:06 2008 New Revision: 33876 Modified: trunk/docs/pdds/pdd23_exceptions.pod Log: [pdd23]: Rewrite a few sections, update for sanity, add comments. Modified: trunk/docs/pdds/pdd23_exceptions.pod

[perl #61336] [BUG] list assignment from split fails

2008-12-14 Thread via RT
# New Ticket Created by Jeff Horwitz # Please include the string: [perl #61336] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61336 > if split() returns fewer elements than the list assignment expects (a valid condition),

Re: [perl #61092] AutoReply: JSON/pge2pir.pir segaful on amd64

2008-12-14 Thread Илья
Hi! I just try to remake last parrot on that machine, that time I have another segaful: make[1]: Entering directory `/home/ihrd/parrot/compilers/pct' ../../parrot -o ../../runtime/parrot/library/PCT.pbc --output-pbc PCT.pir ../../parrot -o ../../runtime/parrot/library/PCT/PAST.pbc --output-pbc src

[perl #61356] Anonymous methods don't work if declared outside class

2008-12-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61356] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61356 > It feels a bit odd that the below two one-liners don't work the same way in Rakudo r3386

[perl #61352] Anonymous methods cannot inherit from named classes

2008-12-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61352] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61352 > The following doesn't parse in Rakudo r33860: $ perl6 -e 'class A { method x { say "OH

[perl #61348] Rakudo dies strangely when classes are extended with "is also" without first being defined

2008-12-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61348] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61348 > Rakudo r33860 can handle extending classes with new methods just fine... $ perl6 -e 'cl

Re: Perl as a better web language ?

2008-12-14 Thread Marc Chantreux
Hello world, I never posted here and never contributed to perl6 in any way but i would like to share my mind about it ... On Sat, Dec 13, 2008 at 01:34:44PM +1100, Timothy S. Nelson wrote: > On Sat, 13 Dec 2008, howard chen wrote: > What I think is more likely to happen in reality is that

[perl #61338] Grammar rules aren't inherited in Rakduo

2008-12-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61338] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61338 > rakudo: grammar Foo { token foo { 'foo' } }; grammar Bar is Foo { token bar { | 'bar'

[perl #61334] Rakudo thinks that somethings that aren't ambiguities are

2008-12-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61334] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61334 > rakudo: multi foo(&c where { .arity == 1 }) { say "One." }; multi foo(&c where { .arity

[perl #61332] Rakudo doesn't disallow calling a sub with a code parameter with an Int argument

2008-12-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61332] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61332 > rakudo: sub foo(&code_block where { 1 <= .arity <= 2 }) { say "OH HAI" }; foo(1) rakud

Re: Perl as a better web language ?

2008-12-14 Thread Илья
Hi! > The problem is how to get it popular and mainstream. The only solution > is let make something standard. (or de facto standard such as RoR in > Ruby) The only solution -- make good web-frameworks. And so when we have one we can pack all it`s stuff in one "distro" and wright good documentati

[perl #61324] [BUG] Some issues with undefined scalar and array values.

2008-12-14 Thread via RT
# New Ticket Created by Ron Schmidt # Please include the string: [perl #61324] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61324 > As discussed on IRC today 12/11: my $x; say $x, 2; Outputs: 2\n my $x = undef; say $x, 2

[perl #61322] Rakudo doesn't complain when subs are redefined

2008-12-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61322] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61322 > rakudo: sub foo { }; sub foo {}; say "ok"; OUTPUT[ok␤] peters: nice one. that's a bug

Re: Perl as a better web language ?

2008-12-14 Thread B. Estrade
On Sat, Dec 13, 2008 at 01:01:10AM +0800, howard chen wrote: > Hello, > > On Fri, Dec 12, 2008 at 1:23 PM, Henk van Oers wrote: > >> > >> It can be done as a library, take a look at Perl6 grammars. > > > > It has been done for perl5. See PLP on CPAN. > > > Sure there are many way to do this in