caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* New Year's resolution suggestions...
@ 2001-01-02 23:33 Charles Martin
  2001-01-03 13:14 ` Pierre Weis
  0 siblings, 1 reply; 6+ messages in thread
From: Charles Martin @ 2001-01-02 23:33 UTC (permalink / raw)
  To: caml-list

... for the OCaml implementors :)

(1) overloading, or something with equivalent functionality

(2) explicit declarations for operator associativity and precedence

Happy New Year!



^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: New Year's resolution suggestions...
@ 2001-01-04 13:25 Dave Berry
  0 siblings, 0 replies; 6+ messages in thread
From: Dave Berry @ 2001-01-04 13:25 UTC (permalink / raw)
  To: Charles Martin, caml-list

>From experience with SML, I believe that any benefit from explicit
precedence definitions is far outweighed by the cost.  It complicates the
implementation (e.g. requiring more information to be shared across
compilation boundaries), it complicates the syntax (requiring new
declaration formats), and IMO it can actually make programs harder to read
(because you can't mentally parse infix expressions without checking the
precedence declarations).

Dave.


-----Original Message-----
From: Charles Martin [mailto:martin@chasm.org]
Sent: Wednesday, January 03, 2001 15:38
To: caml-list@inria.fr
Subject: Re: New Year's resolution suggestions...



>You mean that the actual implicit way of specifying associativity and
>precedence of users's defined operators is not powerful enough for your
>programs ?

It is probably powerful enough as it stands.  But it restricts me to the 
naming scheme that has been chosen for me, which I don't like.  What if 
some kind of Hungarian notation for alphanumeric identifiers was enforced 
by the compiler?  That would be awful.  This feels kind of the same.

This is not nearly as big a wish as for some kind of overloading! :)

Charles



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

end of thread, other threads:[~2001-01-06 21:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-02 23:33 New Year's resolution suggestions Charles Martin
2001-01-03 13:14 ` Pierre Weis
2001-01-03 15:38   ` Charles Martin
2001-01-03 16:27   ` Brian Rogoff
2001-01-04 20:31     ` Marcin 'Qrczak' Kowalczyk
2001-01-04 13:25 Dave Berry

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).