in reply to Re: Reflections on “Higher Order Perl” §1.1
in thread Reflections on “Higher Order Perl” §1.1
A literal or an enumeration or constant is now allowed as a subset type of one. That is indeed fairly new. File a bug. That's one reason why the enumerations (e.g. True and False) got changed to capitalized, as they are grammatically types. That's straight from the camel's mouth: "basically any value can be used as a single-valued type in a signature ... and write the usual factorial with multi factorial (0) { 1 } etc"
So it was in there a month ago, at least. He shows the declarator form of constant in that discussion, so it might have been in his head before it was checked in to STD.pm.
Perhaps we could have a node here that runs P6 syntax through rakudo or the current STD.pm treebuilder app.
—John
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Reflections on “Higher Order Perl” §1.1
by moritz (Cardinal) on Jun 10, 2009 at 17:20 UTC | |
by John M. Dlugosz (Monsignor) on Jun 10, 2009 at 17:35 UTC | |
by TimToady (Parson) on Jun 10, 2009 at 19:54 UTC | |
by John M. Dlugosz (Monsignor) on Jun 15, 2009 at 14:29 UTC |
In Section
Meditations