layout rule infelicity
Alexander V. Voinov
avv@quasar.ipa.nw.ru
Thu, 30 May 2002 21:55:49 -0700
Hi All,
Andrew J Bromage wrote:
>
> G'day all.
>
> On Thu, May 30, 2002 at 01:10:03PM +0200, Johannes Waldmann wrote:
>
> > Python has it as well (they stole it from Haskell?)
>
> Python's layout rule looks more like Occam's than Haskell's, to my eyes.
>
> Aside: Was Occam the first language of the post-punched-card era to use
> layout as syntax?
I fuzzily recall that SICStus Prolog silently tolerated omissions of
commas and dots, allowing for:
p(X) :-
g(X,Y)
h(Y)
p(X)
g(Y,Z) :-
...
But Haskell already existed at this point.
Alexander