Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xiaq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
511.
▲
by
xiaq
13y ago
Though it's mostly a matter of taste, I find pipelines simpler and more natural than method calls. Compare: xs.filter(p).map(f) with filter p xs | map f (Suppose filter and map are implemented such that they accept in
512.
▲
by
xiaq
13y ago
> This is where some of the warts on a higher level than syntax come in, though, to be fair. Your example above fails in confusing -- and maybe even dangerous, depending on the command at the end -- ways if there's spaces in the fil
513.
▲
by
xiaq
13y ago
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.
514.
▲
by
xiaq
13y ago
It's usually known as ksh, isn't it?
515.
▲
by
xiaq
13y ago
Shells are what people use every day, so it's tempting to make more out of it. grep, sed and awk are clumsy tools, but they are more "within the reach" than python or ruby. Also, you miss one particularly elegant aspect of sh
516.
▲
by
xiaq
13y ago
If you are interested, I'm working on (another) experimental Unix shell: https://github.com/xiaq/das It's still in the stage of design (even the name is not actually decided!), but I've implemented a few
517.
▲
by
xiaq
13y ago
zsh is not innovative. It's overgrown.
518.
▲
by
xiaq
13y ago
Finally, a Unix shell whose name doesn't end in "sh". (Actually plan9 rc is earlier than that.)
519.
▲
by
xiaq
13y ago
Alas, that means "Plan 9" bits in go is going to vanish. Luckily some of Plan 9's legacies (saner stdio, simpler socket interface, channels) are embodied in go itself and hopefully getting into mainstream. 9P was not so lucky
520.
▲
by
xiaq
13y ago
Quite some countries use commas as decimal marks: http://en.wikipedia.org/wiki/Decimal_mark#Countries_using_Ar...