From 0bb9cab400ab1028730ad3842dae69a06a5fa655 Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Sat, 28 Nov 2015 12:45:34 -0500 Subject: [PATCH] notes --- remix/README | 1 + remix/tests/simple.rkt | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/remix/README b/remix/README index 30f7a50..f8f4f3c 100644 --- a/remix/README +++ b/remix/README @@ -194,6 +194,7 @@ info (types), and def transformers (types), maybe syntax --- transformer (can change define to define-syntax/etc) vs expander (expands to a different syntax) --- no ability to add args to functions! +--- See https://mail.google.com/mail/u/0/#inbox/1513f480b3313fb2 TODO operator overloading definitions of + and ones that check the types for float/int/fixnum/etc diff --git a/remix/tests/simple.rkt b/remix/tests/simple.rkt index f9cc17c..0713c64 100644 --- a/remix/tests/simple.rkt +++ b/remix/tests/simple.rkt @@ -6,7 +6,9 @@ remix/num/gen0) (module+ test ;; This introduces ≡ as a testing form - ;; XXX Maybe drop this and add a test macro like rackunit/chk + + ;; XXX Maybe drop this and add a test macro like rackunit/chk that + ;; looks for comparison forms. (require remix/test0)) ;; define is replaced with def @@ -43,6 +45,9 @@ ;; cond requires []s for the question-answer pairs. It uses this to ;; make any code in between clauses go in between the `if`s that pop ;; out of the cond macro. finally, cond REQUIRES a #:else clause. +;; +;; XXX potentially make an (impossible!) macro that is a useful +;; default #:else (def (g x) (cond [(< x 100) "100"]