Hi all,
Liz and Tux demonstrate powerful Perl6 code at each monthly meeting of
our Mongers in Amsterdam. Looking at their examples, I collected a few
questions of which I want to discuss the first one in this thread.
When I look at Merijns (Tux') code, I see a huge number of :D attributes.
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: f8fc48fd79639f0962f88e8b37c169d1ebf273d5
https://github.com/perl6/specs/commit/f8fc48fd79639f0962f88e8b37c169d1ebf273d5
Author: Stéphane Payrard
Date: 2015-10-10 (Sat, 10 Oct 2015)
Changed paths:
M S
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: d1d502fb7118771016f626132562252f2e4b55a7
https://github.com/perl6/specs/commit/d1d502fb7118771016f626132562252f2e4b55a7
Author: Tobias Leich
Date: 2015-10-10 (Sat, 10 Oct 2015)
Changed paths:
M S02-b
Hi,
On 10/12/2015 03:41 PM, Mark Overmeer wrote:
>
> Hi all,
>
> Liz and Tux demonstrate powerful Perl6 code at each monthly meeting of
> our Mongers in Amsterdam. Looking at their examples, I collected a few
> questions of which I want to discuss the first one in this thread.
>
>
> When I lo
* Moritz Lenz (mor...@faui2k3.org) [151012 15:32]:
> > . are they using :D correctly?
>
> Yes, though not everybody uses :D as much as they do. Do you check that
> all the parameters that your Perl 5 methods/subs receive are defined? If
> not, you wouldn't use :D in Perl 6 either.
In Perl5, you
On Mon, Oct 12, 2015 at 09:51:13PM +0200, Mark Overmeer wrote:
> > method new(MyClassHere:U: *@args) { ... }
> >
> > in the constructor, which would be quite hostile to newbies. It's still
> > not clear to me how to avoid that.
>
> It is also unclear to me what this means. It is a method whi
On 2015-10-12 1:25 PM, Patrick R. Michaud wrote:
On Mon, Oct 12, 2015 at 09:51:13PM +0200, Mark Overmeer wrote:
Can you give me an example? Many other languages are capable to live
without undef and have first class type objects.
Keep in mind that what Perl 6 calls a "type object" isn't quite
* Patrick R. Michaud (pmich...@pobox.com) [151012 20:25]:
> > > method new(MyClassHere:U: *@args) { ... }
> Keep in mind that what Perl 6 calls a "type object" isn't quite the
> same as class objects in other languages -- a Perl 6 typename is
> really an undefined instance of a class. In other w
On Tue, Oct 13, 2015 at 12:32:01AM +0200, Mark Overmeer wrote:
> Yes, that what I started realizing when I saw all the pain Perl6 goes to
> ignore the existence of a real "undef" in the language. (I follow Perl6
> from a short distance since its start, read all original designs, but
> this penny d