use classes with/without corner brackets

Per Bothner per@bothner.com
Thu Feb 21 18:27:00 GMT 2008


Yaroslav Kavenchuk wrote:
> I found no difference for REPL/compiler:
> 
> #|kawa:1|# (define s1 :: String "sss")
> #|kawa:2|# (define s2 :: <String> "sss")
> 
> or any other use of a class.
> 
> They are present?

The <string> syntax is basically an older syntax.
The plain non-angle-bracket syntax works better with colon-notation.

Note in both cases we're talking about identifiers - it's just
the default binding if no other binding is in scope.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Kawa mailing list