Re[4]: [Hugs-users] Record puns, time for removal?

2006-11-01 Thread Bulat Ziganshin
Hello Iavor, Tuesday, October 31, 2006, 10:06:01 PM, you wrote: By the way, if I recall correctly, in Johan Nordlander's O'Hugs the .. notation (called record packing, I think) could also be used to create record values. I think it worked like this: data Point = Point { x,y :: Int } pt =

Re: Re[2]: [Hugs-users] Record puns, time for removal?

2006-10-31 Thread Seth Kurtzberg
On Tue, 31 Oct 2006 13:59:45 +0300 Bulat Ziganshin [EMAIL PROTECTED] wrote: Hello Neil, Tuesday, October 31, 2006, 4:04:23 AM, you wrote: puns like Foo { .. } would be great too. I'd vote for enabling them with a command line switch, rather than by default, as they can be

Re: Re[2]: [Hugs-users] Record puns, time for removal?

2006-10-31 Thread Iavor Diatchki
Hello, I think the it may be confusing to novices argument tends to be over-used and we should be careful before we make language decisions solely based on it. At the very least, when there is a suggestion that something might be confusing to someone, there should be an explanation of

Re: Re[2]: [Hugs-users] Record puns, time for removal?

2006-10-31 Thread Seth Kurtzberg
On Tue, 31 Oct 2006 11:06:01 -0800 Iavor Diatchki [EMAIL PROTECTED] wrote: Hello, I think the it may be confusing to novices argument tends to be over-used and we should be careful before we make language decisions solely based on it. At the very least, when there is a suggestion that

Re: Re[2]: [Hugs-users] Record puns, time for removal?

2006-10-31 Thread Lennart Augustsson
If we allow C{..} in patterns we should absolutely have it in expressions too. Both for symmetry and usefulness. -- Lennart On Oct 31, 2006, at 14:06 , Iavor Diatchki wrote: Hello, I think the it may be confusing to novices argument tends to be over-used and we should be careful

Re: Re[2]: [Hugs-users] Record puns, time for removal?

2006-10-31 Thread John Meacham
On Tue, Oct 31, 2006 at 02:42:58PM -0500, Seth Kurtzberg wrote: As to why it might be confusing, I realize this is extremely subjective. Suppose you have a record type, and add a constructor to it. As things stand, I can use the compiler to be certain that I've found all areas of the code

RE: [Hugs-users] Record puns, time for removal?

2006-10-30 Thread Simon Peyton-Jones
| There was some discussion on the haskell' list about bring back | record puns, which were once in ghc. | | Record punning would have been very helpful on one of my recent | projects, where I had some large arrays of statically initialized | records. | The

Re: [Hugs-users] Record puns, time for removal?

2006-10-30 Thread John Meacham
On Mon, Oct 30, 2006 at 12:11:23PM -, Simon Peyton-Jones wrote: I always thought it was a mistake to remove record puns in H98. I would not be against re-introducing them into GHC, since they appear to remain in Hugs and are in Yhc. yes. jhc has them too and I wish ghc did. puns like Foo

Re: [Hugs-users] Record puns, time for removal?

2006-10-30 Thread Seth Kurtzberg
On Mon, 30 Oct 2006 16:30:42 -0800 John Meacham [EMAIL PROTECTED] wrote: On Mon, Oct 30, 2006 at 12:11:23PM -, Simon Peyton-Jones wrote: I always thought it was a mistake to remove record puns in H98. I would not be against re-introducing them into GHC, since they appear to remain in

Re: [Hugs-users] Record puns, time for removal?

2006-10-30 Thread Neil Mitchell
Hi puns like Foo { .. } would be great too. I'd vote for enabling them with a command line switch, rather than by default, as they can be confusing to folks learning the language. How discussions come full circle :) I started this discussion on the Hugs users list because I want to