> Shell idioms are much more complex than they seem. "rm -rf" might be aliased to "rm -rif --preserve-root --one-file-system" so when you translate that to a C-style language you get the hideous: File.remove(path, recursive=true, ignore_nonexistent_files=true, always_ask=true, override_always_ask_with_never_ask=true, preserve_root=true, one_file_system=true)
This argument doesn't seem very strong: you can define another function with the customised default behaviour.. And in Ruby I think that you can even change the original function (monkeypatching) eventhough it's dangerous.
> The ruby language is still a bit ill defined, and the weak typing makes it really hard to write robust code.
As if the shell was better for these points!
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds