- Notifications
You must be signed in to change notification settings - Fork587
Description
ae78ae4 merged the removal of smartmatch, which was planned for Perl v5.42.
After more discussion, the PSC believes it would be better to make the removal guarded by a feature.
(Similar to what was done with theindirect
,multidimensional
,bareword_filehandles
andapostrophe_as_package_separator
features.)
That feature would be included in the:default
feature bundle and all bundles up to:5.40
. It wouldn't be included in:5.42
. The main benefit would be that none of the unmaintained modules on CPAN and elsewhere would break, while newer code (declaring the Perl version it codes against withuse VERSION
) would not be able to use smartmatch any more.
The proposed name for the feature is simplysmartmatch
.
Note: This goes against the idea proposed by@iabyn of creating an "air gap" of multiple versions without a smartmatch, that could allow to re-introduce a better smartmatch in the future. It is still possible to take this approach in an undetermined future.