This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
#t and #f now default to primitive types
- From: Per Bothner <per at bothner dot com>
- To: Kawa mailing list <kawa at sourceware dot org>
- Date: Thu, 02 Apr 2015 18:27:18 -0700
- Subject: #t and #f now default to primitive types
- Authentication-results: sourceware.org; auth=none
The literals #t and #f are now treated as having primitive boolean types,
rather than java.lang.Boolean type. That is the return type of:
(define (neg x) (if (>= x 0) #f #t))
is boolean rather than java.lang.Boolean.
Of course you can specify Boolean explicitly if you want:
(define (neg x) ::java.lang.Boolean (if (>= x 0) #f #t))
--
--Per Bothner
per@bothner.com http://per.bothner.com/