News for hackers. Stuff that matters.
Re:Why Create a New Unix Shell? by Goopplesoft on Thursday February 01, 2018 @12:46AM (#16279848)
A while back I wrote a little test snippet[1] to see how good such an interface can get in python.

    _("ls -la") | _(lambda x: x.split()[-1]) | _(lambda x: os.path.splitext(x)[1])
I wonder if there's a complete version of something like this out there. You can probably get pretty far staying in Python-land, plus, everything else is free (data types, standard library, adoption, etc).

[1] https://gist.github.com/pnegahdar/726cf2c65fc561db7831

Re:Why Create a New Unix Shell? by rollcat on Thursday February 01, 2018 @02:26PM (#16284966)
Try playing with __getattr__, I'm sure "_.method" instead of "_(lambda x: x.method())" could be a thing.