caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] shortcut to omit the functor keyword
@ 2011-03-25 18:43 Joel Reymont
  2011-03-25 19:10 ` Vincent Aravantinos
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joel Reymont @ 2011-03-25 18:43 UTC (permalink / raw)
  To: caml-list

Why does the shortcut to omit the functor keyword only exists in module definitions but not in signatures?

For example, why do 

	module type A = sig end;;
	module type B = sig end;;

	module type C = functor (X : A) -> functor (Y : B) -> sig end;;

and not

	module type C (X : A) (Y : B) = sig end;;

the latter would be consistent with 

	module C (X : A) (Y : B) = struct end;;

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------





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

end of thread, other threads:[~2011-03-26  7:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-25 18:43 [Caml-list] shortcut to omit the functor keyword Joel Reymont
2011-03-25 19:10 ` Vincent Aravantinos
2011-03-25 19:11 ` Andreas Rossberg
2011-03-26  7:35 ` [Caml-list] " Satoshi Ogasawara

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