3 ms·
I've been saying more and more that "I hate shell almost as much as I love it" for those same reasons you mentioned. The syntax is so horrible while at the same
by holman 15y ago
I've been saying more and more that "I hate shell almost as much as I love it" for those same reasons you mentioned. The syntax is so horrible while at the same time it's so powerful and clear and... lovely. Maybe I'm just strange, but even as a Rubyist who tends to get pedantic about loving clear syntax, I'm starting to really dig shell.
- richcollins 15y agoI'm not sure I'd say that Ruby has a clear syntax. It's better than its predecessor, Perl, but there is a reason everyone uses the same parser code when they start a new Ruby VM -- it's a complicated mess. You certainly can write Ruby with a subset of its syntax that isn't a mess, but no one does. See Scheme and Io for examples of clear, simple syntax.
- aangjie 15y agoAgreed. I haven't learnt ruby properly just read some code trying to fix a bug, but am no fan of ruby syntax. Neither am I of shell, but then shell is ubiquitous.And don't even get me started on perl :-). Ofcourse, my favourite language(syntax-wise) is python so far.