RE: unlines: the mystery of the trailing \n

2000-08-07 Thread Mark P Jones
Hi Sigbjorn, | Here's a Prelude inconsistency that's been irking me once | in a while for a loong time - today it came up again, so here goes: | | unlines ["a","b"] ==> "a\nb\n" | unwords ["a","b"] ==> "a b" | | [... unwords adds space between items, not at the beginning or end; | unl

Re: unlines: the mystery of the trailing \n

2000-08-07 Thread Brian Boutel
Here is a concern: At present, a final \n in lines' input is optional, because a line is ended by either a \n or the end of the string. Consequently lines "a" and lines "a\n" have the same value ( ["a"] ). This seems a desirable feature that is worth preserving. Consider the composition lines.u

unlines: the mystery of the trailing \n

2000-08-07 Thread Sigbjorn Finne
Here's a Prelude inconsistency that's been irking me once in a while for a loong time - today it came up again, so here goes: unlines ["a","b"] ==> "a\nb\n" unwords ["a","b"] ==> "a b" I like that unwords (ls1 ++ [unwords ls2]) == unwords (ls1 ++ ls2) but not that 'unlines' does

RE: Haskell and the NGWS Runtime

2000-08-07 Thread Doug Ransom
Back to the language wars then. It does seem like integration of Haskell and the NGWS is a graunch, largely because Haskell is not OO. Is there anything preventing Haskell from becoming OO and seamlessly fitting into the NGWS? Or from designing a functional language that would be a good fit into

RE: Haskell and the NGWS Runtime

2000-08-07 Thread Doug Ransom
It is not what language that you want on your phone that matters -- you didn't write the software. What matters is any development team can pick the language they prefer to use and make their software portable to your phone or your PC. -Original Message- From: Nigel Perry [mailto:[

Re: Haskell and the NGWS Runtime

2000-08-07 Thread Ketil Malde
"Chris Saunders" <[EMAIL PROTECTED]> writes: > It seems to me that this .Net thingy is a runtime and therefore > could potentially be as portable as anything from Java. Potentially, yes. > This runtime just needs to be ported to other operating systems > similarily to the Java runtime. So it's

RE:

2000-08-07 Thread Chris Angus
> -Original Message- > From: Matthias Kilian [mailto:[EMAIL PROTECTED]] > Sent: 06 August 2000 22:01 > To: Mirko Pracht > Cc: [EMAIL PROTECTED] > Subject: Re: > > > On Sun, 6 Aug 2000, Mirko Pracht wrote: > > > average x | null x= 0.0 > > What does you make thinking the ave