4 ms·
> It has no switch statements, Opinionated langauge. You either use a if-elif ladder or use a dictionary to switch. I use dictionaries most of the times; not t
by irahul 16y ago
> It has no switch statements,
Opinionated langauge. You either use a if-elif ladder or use a dictionary to switch. I use dictionaries most of the times; not trying to defend lack of switch here but table driven code tends to be less fragile.
> It has significant white space
Significant indent. The only problems I have ever found with this is when I copy paste code in vim and try to auto-indent. Sometimes when the copy is not properly indented, it goes awry.
The limited lambdas are related to this. Other than copy pasting code and limited lambda as a related consequence, I can't think of any other issues it might cause.
> use it to replace the scripting I have to do on a day in and day out purpose.
Why would you necessarily want to do it? I assume you mean shell pipelines when you say command line scripts. Shell scripts, if you are on *nix, suit a particular class of problems very well.
Sure Ruby and Perl play nicely with command line scripts and I have worked on Perl & am familiar with Ruby, but I seldom resort to them - if it's a shell pipeline, sed,awk,grep and co are summoned. If it grows beyond that, then I open vim and write perl/python re-using the pipeline and adding some logic.