Hacker News new | ask | show | jobs
by Nadya 3919 days ago
How would your method subtract "lo" from "Hello" and leave "Hel" instead of "He"? It gets complicated enough that I think you'd be re-implementing a more limited version of regex.

Also I was speaking in context of Javascript so I fail to see how this applies.

1 comments

More of a general observation about how arbitrary the type juggling rules and operator overloadings in programming languages are.