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

Yep, and common for regular expressions. I’d alwayed liked the simplicity of Perl’s “if ($x =~ /.../) {“ and in Python you had to create the match object before you could test it. Assignment expressions should work nicely there.


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

Search: