which language

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Mon Feb 2 14:53:39 UTC 2004


On Sun, Feb 01, 2004 at 12:33:30AM +0200, Peter L. Peres wrote:
> 
> I am working on my idea of writing state machine descriptions in a
> 'language' of mine. I do not know what language is best to implement it.
> To the point: I would like to use arity and type-based function
> implementation matching, as is available in C++ and Prolog. Can this be
> done in Perl or TCL or Python without reinventing the wheel ? I.e. is
> there a straightforward syntax to write:
> 
> function foo(a) { print a }
> function foo(a,b) { print a+b }
> 
> ? what now ? Lisp ? Scheme ? tia,

Try an ML language, like ocaml.  Strongly typed, multiple definitions of
functions based on types and number of inputs and such, and rather fast
when compiled too.  Has an interpreter too.  Allows partial functions
too (as in part of the function execution that is constant is pre
executed and can then be called with the remaining arguments later).

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list