4 ms·
Very nice article named aptly for "dysfunctional non-schemers." :) For the functional schemers/lispers out there, how close to the real picture is this? The sa
by whacked_new 20y ago
Very nice article named aptly for "dysfunctional non-schemers." :)
For the functional schemers/lispers out there, how close to the real picture is this? The same thing can be done in PHP, using a similar syntax, although it's probably more efficient to use switch/case (I say this because I recently rewrote some variable function names into switch/case).
- brlewis 20y agoI didn't examine each function in detail, but it looks like totally the real picture. If you have lexical scoping and anonymous functions, you have the Y combinator. I don't know if PHP has true lexical scoping and anonymous functions yet, but if it does, then yes, you can implement the Y combinator in PHP.