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

> C's "add seemingly randomly named include files to the top of your code to use different parts of the standard library" is pointless

But doesn't most languages do this? Like java's imports (only a really small subset is included by default) or python. I would have thought that namespace separation is a good thing.



I don't use Java, but Python has a reasonably large set of builtins, and the base modules like os and sys provide a lot more - C would require a longer list of includes. Still, I would like to be able to write something like "mmap::mmap" and have Python automatically figure out what to import, keeping the namespace separation but eliminating the redundancy of explicit imports.

(maybe pick something other than double colons, heh.)


    python -m this | head -4 | tail -1
Or use Ruby and ActiveSupport::Dependencies.




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

Search: