ECL (data-centric programming language): Difference between revisions

Content deleted Content added
mNo edit summary
mNo edit summary
Line 37:
‘Hello World’
Perhaps a more flavorful example would take a list of strings, sort them into order, and then return that as a result instead.
 
<PRE>
// First declare a dataset with one column containing a list of strings
// Datasets can also be binary, csv, xml or externally defined structures
 
D := DATASET([{'ECL'},{'Declarative'},{'Data'},{'Centric'},{'Programming'},{'Language'}],{STRING Value;});
SD := SORT(D,Value); <br>
output(SD)
</PRE>
 
The statements containing a := are defined in ECL as attribute definitions. They do not denote an action; rather a definition of a term. Thus, logically, an ECL program can be read: “bottom to top”