Summary: Error Handling in Functional Programming
Review what we’ve learned in this chapter about functional programming in PHP.
We'll cover the following
-
Error handling is a challenging task, regardless of the paradigm. Exceptions are a hindrance to function composition and an opponent of referential transparency because they strain the PHP runtime.
-
It’s complicated to code in PHP without throwing an exception. The structure is, in effect, an error handling mechanism.
Get hands-on with 1400+ tech skills courses.