Hacker News new | past | comments | ask | show | jobs | submit login

For your first example, use a method with a fitting name.

Second one is not a good example, because I think it's a very common pattern and email.match with com|net|org provides enough context by itself. It's just bloat imo.




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

Search: