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 =
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
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
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
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
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
| 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
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
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
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
10 matches
Mail list logo