• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need some Scheme experts

vtqanh

Diamond Member
What are the differences between these two lists:
'((a) (a))
and
'('(a) '(a))

And no, this is not my homework. My module returns different results for those two cases so I'm just wondering what the differences are
Thanks
 
Because of the '

It's a macro for the quote procedure. It means that you don't want the interpreter to evaluate it, just take it for what it is.
 
Dammit, I gotta learn me some lisp. That stuff looks so interesting. Sorry for the thread-crap 😱
 
Originally posted by: tfinch2
Because of the '

It's a macro for the quote procedure. It means that you don't want the interpreter to evaluate it, just take it for what it is.

well, that's what all the tutorials are saying. Can somebody give me a small example to show why the two are treated differently (in the case I mentioned above) ?
 
Originally posted by: vtqanh
Originally posted by: tfinch2
Because of the '

It's a macro for the quote procedure. It means that you don't want the interpreter to evaluate it, just take it for what it is.

well, that's what all the tutorials are saying. Can somebody give me a small example to show why the two are treated differently (in the case I mentioned above) ?

Think of it this way...

> pi
3.1459...

>'pi
pi
 
Originally posted by: jman19
Originally posted by: vtqanh
Originally posted by: tfinch2
Because of the '

It's a macro for the quote procedure. It means that you don't want the interpreter to evaluate it, just take it for what it is.

well, that's what all the tutorials are saying. Can somebody give me a small example to show why the two are treated differently (in the case I mentioned above) ?

Think of it this way...

> pi
3.1459...

>'pi
pi

🙂

Guy Steele, the guy who co-invented/developed SCHEME... I feel like a nerd for remembering that from my CompSci classes...
 
Back
Top