[Top][All Lists]

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

Re: which paradigms does bash support

From: Pádraig Brady
Subject: Re: which paradigms does bash support
Date: Mon, 26 Jan 2015 16:05:16 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 26/01/15 13:43, Greg Wooledge wrote:
> On Sun, Jan 25, 2015 at 08:11:41PM -0800, address@hidden wrote:
>> As a programming language which paradigms does bash support. Declarative, 
>> procedural, imperative?
> This belongs on address@hidden so I'm Cc'ing that address.
> Shell scripts are procedural.

It should be noted that shell programming is closely related to functional 
I.E. functional programming maintains no external state and provides
data flow synchronisation in the language.  This maps closely to the
UNIX filter idea; data flows in and out, with no side affects to the system.

By trying to use filters and pipes instead of procedural shell statements,
you get the advantage of using compiled code, and implicit multicore support 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]