June 2008
Intermediate to advanced
400 pages
14h 4m
English
CHAPTER 12
![]()
Declarative Programming
An interesting way to minimize the problems that arise with runtime aspects of an API is to eliminate the runtime completely. For lack of a better name, let’s call this declarative programming, though the term is overloaded with various meanings and it might mean different things to different people. With declarative programming, the basic idea is that users of your API don’t describe step-by-step what they want your API to do. Rather, they “declare” what they want to have happen and then rely on your API to do it when necessary.
IS THERE REALLY SUCH A THING AS DECLARATIVE PROGRAMMING?
When I first learned about ...