Generics Asumu Takikawa RacketCon 2012 1
What are generics? 2
What are generics? hash-ref assoc hash-set alist-cons hash-remove alist-delete 3
What are generics? hash-ref assoc hash-set alist-cons hash-remove alist-delete list-ref append vector-ref vector-append bytes-ref bytes-append 4
What are generics? hash-ref assoc hash-set alist-cons hash-remove alist-delete list-ref append vector-ref vector-append bytes-ref bytes-append = string=? boolean=? bytes=? 5
What are generics? hash-ref assoc dict-ref hash-set alist-cons dict-set dict-remove hash-remove alist-delete list-ref append vector-ref vector-append bytes-ref bytes-append = string=? boolean=? bytes=? 6
What are generics? hash-ref assoc dict-ref hash-set alist-cons dict-set dict-remove hash-remove alist-delete list-ref append sequence-ref vector-ref vector-append sequence-append bytes-ref bytes-append = string=? boolean=? bytes=? 7
What are generics? hash-ref assoc dict-ref hash-set alist-cons dict-set dict-remove hash-remove alist-delete list-ref append sequence-ref vector-ref vector-append sequence-append bytes-ref bytes-append = string=? equal? boolean=? bytes=? 8
What are generics? hash-ref assoc dict-ref hash-set alist-cons dict-set dict-remove hash-remove alist-delete list-ref append sequence-ref vector-ref vector-append sequence-append bytes-ref bytes-append = string=? equal? boolean=? bytes=? ... but can we make our own? 9
Of course! 10
Of course! This is 11
Of course! This is Anything is only a require away 12
Of course! This is Anything is only a require away (require racket/generic) 13
DEMO https:/ /gist.github.com/3885002 14
Generics Now available in 5.3 Credit: Eli Barzilay Jay McCarthy Vincent St-Amour Claire Alvis Asumu Takikawa 15
Recommend
More recommend