generics
play

Generics Asumu Takikawa RacketCon 2012 1 What are generics? 2 - PowerPoint PPT Presentation

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


  1. Generics Asumu Takikawa RacketCon 2012 1

  2. What are generics? 2

  3. What are generics? hash-ref assoc hash-set alist-cons hash-remove alist-delete 3

  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 4

  5. 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

  6. 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

  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=? boolean=? bytes=? 7

  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=? 8

  9. 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

  10. Of course! 10

  11. Of course! This is 11

  12. Of course! This is Anything is only a require away 12

  13. Of course! This is Anything is only a require away (require racket/generic) 13

  14. DEMO https:/ /gist.github.com/3885002 14

  15. Generics Now available in 5.3 Credit: Eli Barzilay Jay McCarthy Vincent St-Amour Claire Alvis Asumu Takikawa 15

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend