Hacker News new | ask | show | jobs
by theamk 2763 days ago
What would you use in the actual commercial applications?

I have seen people try to replace regexes with sequences of splits and accesing hardcoded field numbers. This can inmprove readability in the simple cases, but makes code much more fragile in the complex cases.

Another approach I have seen is a full featured lexer. Looks clean and very fadt, but in my experience is an overkill for most tasks