1.2 KiB
1.2 KiB
id, projectId, title, slug, status, createdAt, updatedAt, tags, categories, author, publishedAt
| id | projectId | title | slug | status | createdAt | updatedAt | tags | categories | author | publishedAt | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 4cf7bb7b-0da6-4fca-8a9b-ee9e1f43e187 | f2d5e497-5a16-4033-864a-0df066e05e17 | /dev/random - Random Thoughts On Programming In Parentheses - Coops - An introduction to chicken scheme's object system | devrandom-random-thoughts-on-programming-in-parentheses-coops-an-introduction-to-chicken-schemes-object-system | publish | 2011-01-21T14:03:36.000Z | 2011-02-28T15:18:35.000Z |
|
|
hugo | 2011-01-21T13:03:36.000Z |
Genau. Wenn man schon sowas langweiliges wie "warum generic functions und nicht single-object-dispatch" erklären will, dann mit solchen Beispielen:
A short example: Imagine you have a class human which is inherited by a class male and female. Now as we all have an urge to reproduce where to put a method for having sex? Create a method haveSex in the human class, duplicate it in male or female? What would the argument to such a class be? What about having sex with people of the same sex, toys, animals, buildings...