Hello all,

There's something I have been very curious of lately, about low level 
aspects of Racket's compiler.
First of all, I have always considered "cons" to be essentially the same as 
a struct:

(struct cons [hd tl] #:transparent)
(define car (procedure-rename cons-hd 'car))
(define cdr (procedure-rename cons-tl 'cdr))

However I would not be surprised if cons had special treatment in the 
compiler, runtime, etc. 

Is this the case? How frequently does Racket contain special optimizations 
for cons cells? Does cons have a special representation at runtime or at 
the bytecode level?

You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to