Inline Function - Analogs in Other Languages

Analogs in Other Languages

In the Ada programming language, there exists a pragma for inline functions. Most other languages, including Java and functional languages, do not provide language constructs for inline functions, but often do perform aggressive inline expansion.

Functions in Common Lisp may be defined as inline as such:

(declaim (inline dispatch)) (defun dispatch (x) (funcall (get (car x) 'dispatch) x))

Read more about this topic:  Inline Function

Famous quotes containing the word languages:

    I am always sorry when any language is lost, because languages are the pedigree of nations.
    Samuel Johnson (1709–1784)