Occam (programming language): Difference between revisions

Content deleted Content added
m Overview: fix a bunch of links to redirects
Line 5:
 
==Overview==
In the following examples indentation and formatting are critical for parsing the code: expressions are terminated by the end of the line, lists of expressions need to be on the same level of indentation (this feature is also found in other languages, such as [[Python (programming language)|Python]], [[Haskell (programming language)|Haskell]], [[Icon (programming language)|Icon]], [[Miranda (programming language)|Miranda]], and [[ABC (programming language)|ABC]]).
 
Communication between processes work through named ''channels''. One process outputs data to a channel via '''!''' while another one inputs data with '''?'''. Input and output will block until the other end is ready to accept or offer data. Examples (c is a variable):