Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* non-symbol infix functions
@ 2000-10-18  1:33 Chris Hecker
  2000-10-18  9:29 ` Pierre Weis
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Hecker @ 2000-10-18  1:33 UTC (permalink / raw)
  To: caml-list


This simply has to be an FAQ, but I can't find a single reference to it in the FAQ or the manual (except the BNF, which is wrong, I think).  

There's no way to define an arbitrarily named infix function, right?  The BNF in the manual implies you can't do it.  But at the same time, that BNF implies you can't have "external" infix operators that aren't value-names (which have to be either lowercase-ident or ( operator-name )).  Yet, pervasives.mli has "external (lsl)..." in it.

So, why can there be an external (lsl) but not a let (lsl) x y = ...?  If it's true that you can't do it internally, why did you guys bother hacking lsl and the other bit ops to be infix, since it breaks consistency (and taunts the programmer with a non-symbol infix operator the likes of which he can't make himself)?

Perhaps this should be added to the FAQ?

Chris




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

end of thread, other threads:[~2000-10-18 13:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-18  1:33 non-symbol infix functions Chris Hecker
2000-10-18  9:29 ` Pierre Weis
2000-10-18  9:44   ` Chris Hecker
2000-10-18 13:30     ` Pierre Weis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox