To :D or not to :D

2015-10-12 Thread Mark Overmeer
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.

[perl6/specs] f8fc48: problems with grammar attributes and a solution

2015-10-12 Thread GitHub
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

[perl6/specs] d1d502: remove an Exception To The Rule about blocks in me...

2015-10-12 Thread GitHub
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

Re: To :D or not to :D

2015-10-12 Thread Moritz Lenz
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

Re: To :D or not to :D

2015-10-12 Thread Mark Overmeer
* 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

Re: To :D or not to :D

2015-10-12 Thread Patrick R. Michaud
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

Re: To :D or not to :D

2015-10-12 Thread Darren Duncan
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

Re: To :D or not to :D

2015-10-12 Thread Mark Overmeer
* 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

Re: To :D or not to :D

2015-10-12 Thread Patrick R. Michaud
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