<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/b6ee5565f014409bebb67533d11c826d"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-10-07T20:18:02"
  subject="Re: [Caml-list] Re: [Ocaml-lib-devel] pMap.ml"
  prev="2003/10/f15efd219c36be9f95b4c19aa8d3f7b0"
  next="2003/10/83df1b66b7480a3738d4bd32ee128373"
  prev-in-thread="2003/10/f15efd219c36be9f95b4c19aa8d3f7b0"
  next-in-thread="2003/10/c5939839af3d29e482d9f742f6f42b42"
  prev-thread="2003/10/925fbd349fd7a57457dbdae0cc2507bb"
  next-thread="2003/10/928f58d248b3d019446c5690c7664f0a"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
<msg 
  url="2003/10/ce7c6be72bb67c47c5a7a60474df99bd"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-10-06T11:54:38"
  subject="[Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
<msg 
  url="2003/10/03b8ca71a3620cf16e94b780d84ecbea"
  from="Stefano Zacchiroli &lt;zack@b...&gt;"
  author="Stefano Zacchiroli"
  date="2003-10-06T12:06:41"
  subject="Re: [Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
<msg 
  url="2003/10/f15efd219c36be9f95b4c19aa8d3f7b0"
  from="brogoff@s..."
  author="brogoff@s..."
  date="2003-10-07T16:37:42"
  subject="Re: [Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
<msg 
  url="2003/10/b6ee5565f014409bebb67533d11c826d"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-10-07T20:18:02"
  subject="Re: [Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
</msg>
</msg>
</msg>
<msg 
  url="2003/10/c5939839af3d29e482d9f742f6f42b42"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2003-10-06T16:56:08"
  subject="[Caml-list] Re: [Ocaml-lib-devel] pMap.ml">
</msg>
</msg>
</thread>

<contents>
On Wed, 2003-10-08 at 02:37, brogoff@speakeasy.net wrote:
&gt; While it's nice to have stopgap solutions to these "problems", IMO the right
&gt; solution will be possible when we have some kind of overloading in the language.
&gt; Rather than having lots of squirrelly notations for hashtable access (and string
&gt; access, and BigArray access, and...) we should just be able to index like arrays
&gt; and be done with it. Lack of user defined overloading has always been a weak
&gt; point in the entire ML family of languages, IMO.
&gt; 

Felix has overloading. My feelings: lack of overloading
has two advantages.

(1) definiteness

Its definite what you're refering to: the lookup rules
are simple. Unlike overloading systems such as the lookup
and overload resolution in C++.

(2) prevents newbie abuse

Well, I have seen so much *horrendous* C++ garbage
where people thought overloading was clever.

I have also seen bad consequences where more expert
people constructed a badly designed mess -- such as the
C++ iostream facility. They got confused, and tried
to 'overload' cout &lt;&lt; x for x being a 'character'. Only,
when iostreams got templated (character type became a type parameter)
it no longer made so much sense .. 

Yes, I miss overloading in Ocaml. But not all that much :-)


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

