logoalt Hacker News

pushpankar • today at 10:30 AM • 4 replies • view on HN

I didn't mean list data structure for everything. I meant list for representing all code whereas clojure uses vector, map literal, and other syntax


Replies

PuercoPop • today at 3:59 PM

That is also wrong. Scheme uses syntax objects for syntax. If you meant the brackets they use in certain places, in Chez Scheme and other schemes you can replace parens with square brackets where as you see fit. e.j.

  (let [[a 1]
        [b 3]]
    (+ a b))
is valid scheme code
arunix • today at 10:58 AM

Are you comparing Clojure to Scheme in general? Would the same thinking apply to Chicken or any other standard Scheme?

➕ show 1 reply
rscho • today at 10:53 AM

Scheme also has literals for vectors.

antonvs • today at 10:56 AM

Scheme has a standard vector type with corresponding syntax (since 1985), and as of the R6RS version, a standard bytevector type. Some Scheme dialects like Racket and Gauche have map literal syntax as well.