user-pic

Ron Savage

  • Website: savage.net.au/
  • About: I try to write all code in Perl, but find I end up writing in bash, CSS, HTML, JS, and SQL, and doing database design, just to get anything done...
Subscribe to feed Recent Actions from Ron Savage

  • brian d foy commented on Smartmatch in 5.27.7

    I wrote up my own thoughts. Aside some the actual language issues I'm most disturbed that this didn't follow the normal experimental feature contract in perlpolicy. Not only that, the feature branch wasn't rebased (another violation) so was enmeshed in what was separately happening in blead. Socially, this change is bad for users and core developers.

  • Aristotle commented on Smartmatch in 5.27.7

    Yes, autoderef came to my mind as well.

  • smls commented on Smartmatch in 5.27.7

    Maybe documenting some rationale for at least "whereso" would help

    It's probably inspired by the so function from Perl 6, which simply coerces its argument to Bool - like the not function but without the negation.

  • brian d foy commented on Smartmatch in 5.27.7
  • ronw commented on Smartmatch in 5.27.7

    I think that smart match tried to do too much. the use I had for it was "when" to allow for a more flexible "switch" construct than using a mix of "nswitch", "sswitch" and "rswitch" (and variations, as provided by various CPAN modules).

    Things like "appearing as a value in an array", and other complexities, would be better accomplished by their own operators or functions.

Subscribe to feed Responses to Comments from Ron Savage

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.