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

The downside of objects is performance due to the e.g. increased overhead a file object carries. Plus the exact same can be argued with everything being bytes/text on Unix, in that it make everything simple but versatile.

> get some field out of `ls`

If you're parsing the output of ls, you're doing it wrong. Filenames can contain characters such as newlines, etc, and so you generally want to use globbing/other shell builtins, or utils like find with null as the separator instead of newline.



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

Search: