Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I do wish he had mentioned the smart match operator ~~ as it nearly eliminates the confusion between EQ and ==. Of course, if you're dealing with legacy code, then you still need to understand both (or all three), but new coders might be well advised to start with smart match.


"Smart" match is a pile of shit, and anyone reading the manual description for it should conclude the same. You can't know what it does unless you can remember the details of a 23-item table.

It's undergoing major revision, and not a minute too soon.


Is it that bad in Perl 6 too?


No, because Perl 6 has a coherent type system.


Smart match is undergoing revision because, frankly, it's too smart. I don't mind that he left it out, and I'm one of the core devs.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: