Skip to content

Commit e975732

Browse files
author
varun10p
committed
Better fix
1 parent fc1064b commit e975732

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/platforms/bool.rkt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@
2929
(define (or-fn . as)
3030
(ormap identity as))
3131

32-
(define-operator-impl (not [x : bool])
33-
bool
34-
#:spec (not x)
35-
#:fl not
36-
#:identities (#:exact (not a)))
32+
(define-operator-impl (not [x : bool]) bool #:spec (not x) #:fl not #:identities (#:exact (not a)))
3733

3834
(define-operator-impl (and [x : bool] [y : bool])
3935
bool

src/syntax/sugar.rkt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@
173173
(define ift* (loop ift prop-dict))
174174
(define iff* (loop iff prop-dict))
175175
(list 'if cond* ift* iff*)]
176-
[(list '! props ... body) (loop body (apply dict-set prop-dict props))]
176+
[(list '! props ... body)
177+
(loop body (if (not (null? props)) (apply dict-set prop-dict props) prop-dict))]
177178
[(list 'neg arg) ; non-standard but useful [TODO: remove]
178179
(define arg* (loop arg prop-dict))
179180
(fpcore->impl-app '- prop-dict (list arg*) ctx)]

0 commit comments

Comments
 (0)