Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

OOP is currying

Name: Anonymous 2017-07-06 0:04

Thinks about it :inheritance, polymorphism, virtual functions, code+data.
The classes constructed are basically curried functions+data.

Name: Anonymous 2017-07-14 6:06

OOP done properly:
(define (cat name)
(lambda (op)
(cond ((eq? op 'getName) name)
((eq? op 'meow) "meow"))))

(define my-kitty (cat "Hanekawa"))
(display (my-kitty 'getName))
(display (my-kitty 'meow))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List