News for hackers. Stuff that matters.
Re:The shok command shell by icebraining on Sunday December 29, 2013 @05:22AM (#6979103)
> Try to write "find . -name '.py' | xargs cat | wc -l" in other languages.

  import pipe
  find(name='*.py') | xargs(cat) | wc().lines
The implementation of the functions is left as an exercise for the reader, but the syntax is valid.

https://github.com/JulienPalard/Pipe

Re:The shok command shell by stormbrew on Sunday December 29, 2013 @05:56AM (#6979188)
> The implementation of the functions is left as an exercise for the reader

This is kind of the point.

Re:The shok command shell by xiaq on Sunday December 29, 2013 @06:19AM (#6979234)
Yes it's possible in Python, but doing that means working against all idioms and zens of Python.

Languages are not only about what they make possible, but also about what they encourage.