which language

John Macdonald jmm-TU2q2He6PgRlD5gtYiU6kEEOCMrvLtNR at public.gmane.org
Sun Feb 1 16:37:30 UTC 2004


On Sun, Feb 01, 2004 at 12:33:30AM +0200, Peter L. Peres wrote:
> 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,

If you can afford to wait a year or two, Perl 6 will
support differentiating by both number and the type
of the arguments.
--
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