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:49
>>11How so? with a dispatch function one can easily just do:
(define (cat name)
(dispatch 'getName name
'meow "meow"))
(define my-kitty (cat "Hanekawa"))
(display (my-kitty 'getName))
(display (my-kitty 'meow))
And if you had a lisp where a.b was the same as (a 'b) then you could just do
(display my-kitty.getName)
(display my-kitty.meow)