next up previous contents
Next: 5.1.4 Representation of Objects Up: 5.1 Advanced Compiler Introduction Previous: 5.1.2 Optimization

5.1.3 Function Call

The sort of symbolic programs generally written in Common Lisp often favor recursion over iteration, or have inner loops so complex that they involve multiple function calls. Such programs spend a larger fraction of their time doing function calls than is the norm in other languages; for this reason Common Lisp implementations strive to make the general (or full) function call as inexpensive as possible. Python goes beyond this by providing two good alternatives to full call:

Generally, Python provides simple implementations for simple uses of function call, rather than having only a single calling convention. These features allow a more natural programming style:



Raymond Toy
Mon Jul 14 09:11:27 EDT 1997