Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 78cc98885ff2800cd3a0eda0b60a0cbb113498a9
https://github.com/Perl/perl5/commit/78cc98885ff2800cd3a0eda0b60a0cbb113498a9
Author: David Mitchell <[email protected]>
Date: 2022-01-19 (Wed, 19 Jan 2022)
Changed paths:
M lib/B/Deparse-core.t
M op.c
M t/lib/croak/op
M t/lib/warnings/op
M t/op/sort.t
Log Message:
-----------
make a sort with zero args a compile-time err
@a = sort @empty; # unaffected
@a = sort; # now a compile-time error
the main motivation for this is to potentially be able to treat a
colon following the 'sort' keyword as part of the sort expression,
to then be able to add sort attributes at some point, e.g.
@a = sort :num, 1,2,3;
rather than the colon being seen as part of a ?: conditional.
See http://nntp.perl.org/group/perl.perl5.porters/262425.