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

You can do unescaping in constant time and space using a state machine. Coroutines would be the ideal way to express this.

JSON strings containing zillions of backslashes. (I have no idea why.

I've seen source code where someone was fond of using forward and backslashes in comments as a banner. Perhaps that might be related.



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

Search: