Why is the application a code ref rather than an object with a ->call method?
Requiring an object in addition to a code ref would make EVERY backend’s code a few lines more tedious, while requiring an object instead of a code ref would make application developers write another class and instanciate an object. In other words, yes an object with a call method could work, but again PSGI was designed to be as simple as possible, and making a code reference out of class/object is no brainer but the other way round always requires a few lines of code and possibly a new file.
Related Questions
- When I print preview the Loan Application, I get the following error: (OLE error code 0x8004006d: Object doesn support IViewObject interface). How can I fix this problem?
- But that object will be accessible from any servlet in the application. Is there any elegant way by which i can call a method in a servlet from the other servlet?
- VBA has an InputBox function, and theres also an InputBox method for the Application object. Are these the same?