It would be better objects were decorated in Scheme.
Here's the way it is:
§ "cat" cat
§ #\a 'a'
§ #t true
§ #(a b c) [a, b, c]
§ (vector "a" "b" "c") [a, b, c]
§ (make-vector 3) [#!undefined, #!undefined, #!undefined]
Here's how it would be if the input syntax matched the output syntax:
§ "cat" "cat"
§ #\a #\a
§ #t #t
§ #(a b c) #(a b c)
§ (vector "a" "b" "c") #("a" "b" "c")
§ (make-vector 3) #(0 0 0)
I'm actually okay with using true/false instead of #t/#f because that is also accepted as input.
Comment #1
Posted on Aug 29, 2011 by Helpful ElephantUpdated in r158
Strings, characters, true/false, lists, and vectors have been handled.
Status: Fixed
Labels:
Type-Enhancement
Priority-Low