> type Treenode struct { > left *Treenode > right *Treenode > }
One could of course design a language where Treenode is called cons and left is called car and right is called cdr and (car nil) is nil and (cdr nil) is nil. You could implement such a language by putting 2 words of 0 at location 0 and add a write barrier or page protection to enforce nil immutable. One could do all of this but Lisp did it a long time ago. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/7b24eace-ef9a-4190-b066-315ef89c32be%40googlegroups.com.