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

It's 17 lines of code (11 if you don't count the white space). If you find it somewhere and copy it to your utils package, that's great! If you add a dependency for every little utility you may need, you're going to end up with huge space for ecosystem attacks, as we're seeing in the Node ecosystem. Especially for something like this, where people can add it as a dependency because they don't want to understand macro code (there is another comment saying just that).


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

Search: