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

For illustration (probably wrong again):

    curl 'http://weather.yahooapis.com/forecastrss?w=615702&u=c' | \
        xmlstarlet sel -N 'y=http://xml.weather.yahoo.com/ns/rss/1.0' \
              -t -m '//y:forecast' -v '@text'
edit: corrected xml line


I'm sorry, but you're still missing the point. The point is that the syntax with LINQ is actually the same. Saying you have a program to do X in bash is the equivalent to saying you've got a library to do X in C# or Java.

LINQ, on the other hand, can work with arbitrary runtime objects and arbitrary backend implementations. Haskell's still cooler, though.




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

Search: