Tacit programming: Difference between revisions

Content deleted Content added
WP:REFerences: plain text + inline WP:EXTernal links > WP:CITations; parameters: adds, fills, update-standardizes, respaces. WP:LINKs: adds, update-standardize, needless-WP:PIPE > WP:NOPIPE. Small WP:COPYEDITs WP:EoS: WP:TERSE, clarify, 1st MOS:PERSON we cut+fix, MOS:NOTETHAT cut. WP:BADEMPHASIS MOS:QUOTEMARKS > Template:Codes. Cut needless carriage returns in sentences. Adds: WP:CATEGORYs, MOS:COMMENT.
Unix pipeline: fix syntaxhighlight error
Line 124:
 
In Unix scripting the functions are computer programs which receive data from [[Standard streams|standard input]] and send the results to [[Standard streams|standard output]]. For example,
 
<syntaxhighlight lang="bash">
sort | uniq -c | sort -rn
 
</syntaxhighlight>
is a tacit or point-free composition which returns the counts of its arguments and the arguments, in the order of decreasing counts. The {{Codemono|sort}} and {{Codemono|uniq}} are the functions, the {{Code|-c}} and {{Code|-rn}} control the functions, but the arguments are not mentioned. The pipe {{<Code>||}}</code> is the composition operator.
 
Due to the way pipelines work, it is normally possible only to pass one ''argument'' at a time in the form of a pair of standard [[input/output]] stream. Although extra [[file descriptor]]s can be opened from [[named pipe]]s, this no longer constitutes a point-free style.