[ prog / sol / mona ]

prog


Jsonnet, Nix and POO

1 2023-08-29 06:00

http://webyrd.net/scheme_workshop_2021/scheme2021-final91.pdf
https://invidious.poast.org/watch?v=ckXkIlhUWss
https://github.com/fare/gerbil-poo

;Object Orientation in 38 cons cells of standard Scheme.
(define (fix p b) (define f (p (lambda i (apply f i)) b)) f)
(define (mix c p) (lambda (f b) (c f (p f b))))

We will make the case that the above two definitions summarize the essence of Object-Oriented Programming (OOP), and that all the usual OOP concepts can be easily recovered from them—all while staying within the framework of pure Functional Programming (FP)

4


VIP:

do not edit these