It is nice to come up with one-liners. E.g. today I was looking for a one-liner hg post-clone hook.
But... even when you can find a one-liner, oftentimes you give up error checking or good error messages to get it. Or, you might create something fraguke, that only works on the input you happened to have seen today, when generalizing it even a little bit is easy, but would make it more than one line.
I wonder if one liners are a source of security bugs?
No comments:
Post a Comment