| | 186 | * Parse for siglets: |
| | 187 | :($, $, &) |
| | 188 | * Allow for rule redefinition via ->reinstall. |
| | 189 | * Allow binding to fully-qualified, uninitialized variables: |
| | 190 | &foo::bar ::= sub { ... }; |
| | 191 | * Argumentless POD introducer can now be followed by =cut correctly. |
| | 192 | =foo |
| | 193 | =cut |
| | 194 | say "This gets run"; |
| | 195 | * Allow "last" and "redo" in "repeat { ... }" loops. |
| | 196 | * Implement \($x, $y, |$z, $w) splicing. |
| | 197 | * "my $x; { $x; my $x }" now fails with a sensible error message. |
| | 198 | * "do { ... }" is now made a true block, by desugaring it into |
| | 199 | "repeat { ... } while False". |
| | 200 | * "f( :$x :$y :$z )" without commas between them is now legal syntax. |
| | 201 | * Allow $::x to mean exactly the same as $x. |
| | 202 | * The main package is now ::Main, not ::main. |
| | 203 | * "sub ($x = 0 is copy)" is invalid; say "sub ($x is copy = 0)" instead. |
| | 204 | * Pugs.Parser: $() now means $$/, @() means @$/, %() means %$/, etc. |
| | 205 | * Added identity values for the builtin reduceable operators from S03 |
| | 206 | * Implement hyperfold and hyperscan: [>>+<<] and [\>>+<<] |
| | 207 | * Unicode support for the embedded Perl5 bridge. (This takes effect iff |
| | 208 | the embedded Perl supports SvUTF8_on, typically Perl 5.8+.) |
| | 209 | * Pugs.Parser: Support for attribute call syntax. |
| | 210 | @.foo(1, 2, 3); # self.foo(1,2,3).'@' |
| | 211 | $.bar: 4, 5, 6; # self.bar(4,5,6).'$' |
| | 212 | |
| | 213 | * Remove support for reduce+posthyper form "[+]<<" because as specced the |
| | 214 | hyper will recurse into arrays, so the reduce never got a chance to run. |
| | 215 | * Support for instance default expressions (which are evaluated in |
| | 216 | Class composition time, not in instance creation time): |
| | 217 | class Foo { |
| | 218 | has $.x = 10; |
| | 219 | } |
| | 220 | * Much improve multi dispatch system |
| | 221 | * Implement quantified method calls: $obj.*meth, $obj.+meth, $obj.?meth, |
| | 222 | as well as quantified dynamic method calls: $obj.[+*?]$meth. |
| | 223 | * User-defined macros now take effect even in prefix unary |
| | 224 | and optional unary. |
| | 225 | * "Odd numbers of elements in hash" is now made fatal |
| | 226 | (it was not even a warning) to help shake out incorrect |
| | 227 | usages of things like 1<2>. |
| | 228 | * Pugs.Prim.Keyed: Instead of allowing "1.delete();" to return undef, |
| | 229 | we now simply fail. |
| | 230 | * Pugs.Eval: Autovivification is now constrainted by typed variables: |
| | 231 | my Hash $x; |
| | 232 | $x[0] = 1; # fails, as $x can _only_ vivify to Hash. |
| | 233 | * Implement rudimentary "fail" control via $*FAIL_SHOULD_DIE. |
| | 234 | * Changed $obj ~~ Pkg::Name to $obj ~~ ::Pkg::Name |
| | 235 | * Support for PRE/POST design-by-contract assertions. |
| | 236 | * Support for KEEP/UNDO blocks |
| | 237 | * Pugs.Prim: Add "&leave" to leave a block, "&break" to break |
| | 238 | out of a "given", and "&continue" to break out of a "when" |
| | 239 | * Reduce standalone blocks even if nested: |
| | 240 | { { { say 3 } } } |
| | 241 | * Make the closure trait blocks lazy |
| | 242 | * Repair "use perl5:Foo" |
| | 243 | * Implement smart matching against implicit invocation: |
| | 244 | $obj ~~ .meth # ?($obj.meth) |
| | 245 | $obj ~~ .[0] # ?($obj.[0]) |
| | 246 | $obj ~~ .<x> # ?($obj.<x>) |
| | 247 | * Implement "when .[0]" and "when .<s>" |
| | 248 | * Implement hyper methods: |
| | 249 | @obj>>meth |
| | 250 | @obj.>>meth |
| | 251 | @obj>>.meth |
| | 252 | @obj.>>.meth |
| | 253 | @obj\ .>>\ .meth |
| | 254 | * Reject named arguments that cannot find a matching named |
| | 255 | parameter or slurpy hash. |
| | 256 | sub f () {...} |
| | 257 | f(y => 1); # used to bind silently, but now no more |
| | 258 | * "for 1..3 { $_++ }" should die, not survive. |
| | 259 | * Primitive support for =@Array on both contexts. |
| | 260 | * Implement "s[...]=..." and deprecate "s[...][...]" |
| | 261 | * Remove Judy from the Pugs build process. |
| | 262 | * Make system() nonfatal always; instead it merely sets $!. |
| | 263 | |
| | 283 | * Implement &sub.call(\(...capture...)) correctly. |
| | 284 | * Pugs.Parser: Parse for |
| | 285 | repeat { |
| | 286 | } |
| | 287 | while 1; |
| | 288 | * Pugs.Eval: Allow "redo" to redo the first repeat loop. |
| | 289 | (repeat.t now all passes.) |
| | 290 | * "sub f ($x is lazy) {...}" is now guaranteed to not evaluate |
| | 291 | its argument more than once. |
| | 292 | * Switch chained comparison such as "1 > 2 > die('not reached') |
| | 293 | to use "is lazy" parameters, so they can short-circuit properly. |
| | 294 | * Fix expected outut of head-neck-tail in examples/: |
| | 295 | [1,2,3].say should print "1 2 3\n", not "123\n". |
| | 296 | * Fix take [1,2,3]" shouldn't flatten into "take 1,2,3 |
| | 297 | * fix a couple of old s{}{} instances. comb potentially faster using lvalue |
| | 298 | substr instead of copying string. |
| | 299 | * ".perl" now returns Unicode strings properly. |
| | 300 | |