caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] default values for record field definitions
@ 2001-07-19  4:13 Alexander V. Voinov
  2001-07-19  6:43 ` Ian Zimmerman
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alexander V. Voinov @ 2001-07-19  4:13 UTC (permalink / raw)
  To: caml

Hi All,

It may well be that I'm not in the first hundred of those who proposed
this, if so - sorry :-).

Why not to introduce a syntax for default values of record fields:

type rec1 = { attr1: type1 = val1; attr2: type2; attr3: type3 = val3 }

It this case constructions of the form

let x = { attr2 = val2 } are possible, with other fields filled by val1,
val3.

Can it be done via camlp4?

Alexander
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-07-21 13:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-19  4:13 [Caml-list] default values for record field definitions Alexander V. Voinov
2001-07-19  6:43 ` Ian Zimmerman
2001-07-19 13:35   ` David Mentre
2001-07-19  7:02 ` Dmitry Bely
2001-07-19 16:20   ` Alexander V. Voinov
2001-07-20  9:42   ` FabienFleutot
2001-07-21 13:16 ` Daniel de Rauglaudre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).