Re: Static, dynamic and Lisp types.



(message (Hello 'acaradesapo@xxxxxxxxx)
(you :wrote :on '(Wed, 26 Sep 2007 14:36:42 -0000))
(

a> Do there is a name for a language like this, that is, creating a new
a> name for the
a> same concept with different arguments?

Non OO.

Lisp allows functions to be both efficient by being specialized to some type
and have generic name.
those are generic functions, of course.

there's often dispatching overhead associated with them, so they might be
not that efficient.
BUT in theory it should be possible for implementation to know argument
types via type inference (or whatever) and to inline a specific method call
(or method itself!) into caller.

however, i don't know if any of implementations actually implement such
optimizations. also, methods of generic function can be changed in runtime,
and so if method was inlined that function should be recompiled, or
something like that..

so i think there's a solution to make it absolutely effective, if somebody
really wants to

)
(With-best-regards '(Alex Mizrahi) :aka 'killer_storm)
"Hanging In The Balance Of Deceit And Blasphemy")


.



Relevant Pages

  • Re: What computer language is used a lot in the IT industry?
    ... Do you mean Generic Functions or generic functions, ... JavaScript Objects are fully--and individually!--dynamic. ... Only tools you must master are an editor and your browser. ... Standardized language. ...
    (comp.programming)
  • Re: generic functions in python
    ... implement generic functions myself. ... when learning a new language, and I'm brand new to Python. ... It works in lisp as follows ... > How do python programmers work around this limitation? ...
    (comp.lang.python)
  • Re: A "killer" macro
    ... the concept of generic functions (as ... orthogonal to class structure) and multiple dispatch. ... any other interpreted language. ... It's hard to match that w/o comparable effort and ...
    (comp.lang.lisp)
  • Re: Exceptions in C/C++
    ... Complex numbers make the language heavier without solving the ... Generic functions is a GREAT idea ... I have been trying to implement libraries and language modifications ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)