News for hackers. Stuff that matters.
Re:ISO C is increasingly moronic by shadowfox on Tuesday December 20, 2011 @09:05PM (#3376076)
> 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.

Re:ISO C is increasingly moronic by comex on Tuesday December 20, 2011 @09:38PM (#3376159)
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.)

Re:ISO C is increasingly moronic by lloeki on Wednesday December 21, 2011 @03:12AM (#3376795)

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