Whether it's lambda functions (closures), immutable objects in PSR-7, or the pipe operator RFC (https://wiki.php.net/rfc/pipe-operator …), functional programming has been the in-vogue influence on PHP in the last few years. Can we harness it to create code that's far more reusable than objects are?
In this talk, Stuart will introduce you to railway-oriented programming (ROP), a functional approach to reusable composition from Scott Wlaschin. Together, we'll build up an implementation of ROP in PHP, and at the end, we'll debate the question: would we use the end result in anger?
Delivered at BrumPHP on 28th March, 2018.