> ... Haskell is old and has the optional offset rule:
>
> do { prob <- getLine
>     ; test prob
>     ; main}

It's interesting to see people put semicolons at the begining of a
line of code.  In 1970s, people used to draw lines on printouts of Ada
and Pascal code to connect the begins with the ends.  My first
publication

Ramsdell, J. D., "Prettyprinting Structured Programs with Connector
Lines," ACM SIGPLAN Notices, Vol. 14, No. 9, p. 74, September 1979

suggested prettyprinting Ada and Pascal programs with the semicolons
at the begining of the lines and use them as the connector lines.
Thus a prettyprinted Ada program looked like:

package Mine is
   ...
begin
;   while i < Integer'Last loop
;   ;    Print (i)
;   end loop;
end Mine;

It didn't work quite as well in Pascal, because semicolon was a
statement separator instead of a statement terminator.

In those day, procedures tended to large and deeply nested because
procedure invocation was expensive.

John
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to