Browse thread
[Caml-list] Polymorphic Variants and Number Parameterized Types
-
Nadji.Gauthier@l...
-
John Max Skaller
-
Brian Rogoff
- Nadji.Gauthier@l...
- John Max Skaller
-
Brian Rogoff
-
John Max Skaller
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | John Max Skaller <skaller@o...> |
| Subject: | Re: [Caml-list] Polymorphic Variants and Number Parameterized Types |
Brian Rogoff wrote: >> Of course, C++ is ahead here, it already admits generics parameterised >>by both types and integers .. <Ducks for cover ... > >> > >I don't think C++ or Ada generics (which also parameterize over values) >help you much there. Besides, ML uses the module system to parameterize >over values. > Yeah, you're right. Although, there aren't many types that can use that information. (No fixed lenth arrays for example). Hmmm... beginnners question on module system .. can you recurse on it? I'm guessing not, since there are neither specialisations nor overloading, there's be no way to stop the recursion. ..?? [In C++, you can recurse on an integer parameter, using a specialisation/overload to terminate the recursion... its a turing complete functional programming language .. slightly messy though :] -- John Max Skaller, mailto:skaller@ozemail.com.au snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia. voice:61-2-9660-0850 ------------------- 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