From 5fe50b4758e5bee5dada8129d0769da1704db45a Mon Sep 17 00:00:00 2001 From: "William J. Bowman" Date: Fri, 22 Jan 2016 14:19:49 -0500 Subject: [PATCH] Better typeclasses --- cur-lib/cur/stdlib/typeclass.rkt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cur-lib/cur/stdlib/typeclass.rkt b/cur-lib/cur/stdlib/typeclass.rkt index 3c26dc3..b965c5c 100644 --- a/cur-lib/cur/stdlib/typeclass.rkt +++ b/cur-lib/cur/stdlib/typeclass.rkt @@ -14,10 +14,10 @@ | These typeclasses are kind of broken. There are no typeclass constraints so.... |# (begin-for-syntax - #| NB: - | Need this thing to be global w.r.t. the runtime, i.e., exist once - | and for all no matter how many things import typeclass, i.e., not - | local to this module. + #| TODO: + | A compile-time hash table is stupid. Use something akin to struct + | type properties to associate method with the identifier for the type, + | perhaps syntax properties. |# (define typeclasses (make-hash))) (define-syntax (typeclass syn)