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

What a weird thing to say. You trust a regex engine more than you trust "split()"?


I trust a generated parser more than a hand-written one. Any parsing algorithm that involves the use of split() is almost certain to be weakly thought-out and have ill-defined behavior for unexpected input. A well-written parser will never read past the first unexpected character, or at least token.




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

Search: