Re: constants and functions without arguments

2001-03-30 Thread Jerzy Karczmarczuk
Andreas Leitner wrote at the end of his discussion about constants/functions sans arguments: > I mean couldn't one say that there are no constants, just functions > with no arguments or the Void/Unit argument that return an expression. > Since we have lazy evaluation, there won't be a problem at

Re: constants and functions without arguments

2001-03-30 Thread Lennart Augustsson
Andreas Leitner wrote: > Hi, > > I hope this is the right forum to post my question to. > > Given a lazy pure functional language do we need to differntiate (in > syntax) between constants and functions without agruments? And if we > don't need to, does Haskell make a difference? >From a pedanti

Re: constants and functions without arguments

2001-03-30 Thread Andreas Leitner
Tom Pledger wrote: > > Andreas Leitner writes: > : > | Given a lazy pure functional language do we need to differntiate > | (in syntax) between constants and functions without agruments? And > | if we don't need to, does Haskell make a difference? > > Haskell always treats a declaration of t

constants and functions without arguments

2001-03-29 Thread Tom Pledger
Andreas Leitner writes: : | Given a lazy pure functional language do we need to differntiate | (in syntax) between constants and functions without agruments? And | if we don't need to, does Haskell make a difference? Haskell always treats a declaration of the form foo = ... as a pattern

constants and functions without arguments

2001-03-29 Thread Andreas Leitner
Hi, I hope this is the right forum to post my question to. Given a lazy pure functional language do we need to differntiate (in syntax) between constants and functions without agruments? And if we don't need to, does Haskell make a difference? In a language with eager evaluation (let's take SML