Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Pretending OOP Never Happened. Parent comment
let pair = (a, b) => ( (ix) => ( ix === 0 ? a : ix === 1 ? b : undefined ) ); let p = pair(3, "foo"); p(0) // 3 p(1) // "foo"
however the object has the extra wrinkle of self-referentiality, because the `self` function is defined recursively
There are no comments on this comment yet.
however the object has the extra wrinkle of self-referentiality, because the `self` function is defined recursively