notes
This commit is contained in:
parent
3e53a386aa
commit
0bb9cab400
|
@ -194,6 +194,7 @@ info (types), and def transformers (types), maybe syntax ---
|
||||||
transformer (can change define to define-syntax/etc) vs expander
|
transformer (can change define to define-syntax/etc) vs expander
|
||||||
(expands to a different syntax) --- no ability to add args to
|
(expands to a different syntax) --- no ability to add args to
|
||||||
functions!
|
functions!
|
||||||
|
--- See https://mail.google.com/mail/u/0/#inbox/1513f480b3313fb2
|
||||||
|
|
||||||
TODO operator overloading definitions of + and ones that check the
|
TODO operator overloading definitions of + and ones that check the
|
||||||
types for float/int/fixnum/etc
|
types for float/int/fixnum/etc
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
remix/num/gen0)
|
remix/num/gen0)
|
||||||
(module+ test
|
(module+ test
|
||||||
;; This introduces ≡ as a testing form
|
;; 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))
|
(require remix/test0))
|
||||||
|
|
||||||
;; define is replaced with def
|
;; define is replaced with def
|
||||||
|
@ -43,6 +45,9 @@
|
||||||
;; cond requires []s for the question-answer pairs. It uses this to
|
;; 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
|
;; 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.
|
;; 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)
|
(def (g x)
|
||||||
(cond
|
(cond
|
||||||
[(< x 100) "100"]
|
[(< x 100) "100"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user