[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scriptometer: measuring the ease of SOP (Script Oriented Programming) of programming languages

> % false || echo "false failed" 1>&2
> is
>   if (Runtime.getRuntime().exec("false").waitFor() != 0)
>      System.err.println("false failed");
> ...
> but this doesn't scale to functions writing on stdout or stderr, or at
> least it works until the output is big enough for the pipe to be full.

So an aspect of shell scripting is
that it decouples command failure
from command results, and perhaps
more importantly, decouples data
flow from control flow.

Exceptions help with the former;
what things help with the latter?
(GC and list comprehensions?  GC
and laziness?)