Hacker News new | ask | show | jobs
by marcosdumay 4630 days ago
Well, I can really say what it should be...

But I put one-liners in a function when the one-liner is hard to read or too error prone (missing a detail won't lead to a compiler error, but to a bug).