This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: extended "colon notation" [feedback needed]
I've checked in the following:
(1) To check that a value is an instance of a type:
(TYPE:instance? VALUE)
;; same as (instance? VALUE TYPE)
(2) To cast a value to a type:
(TYPE:<- VALUE)
;; same as (as VALUE TYPE)
(3) Accessing the java.lang.Class for a class type:
(TYPE:.class)
;; similar to (Class:forName "TYPE"), or Java's TYPE.class
--
--Per Bothner
per@bothner.com http://per.bothner.com/