logo       

RE: smalltalk analogy of a scheme expression: msg#00133

lang.smalltalk.squeak.beginners

Subject: RE: smalltalk analogy of a scheme expression

> In scheme,
>
> (+ 3 4)
>
> is to
>
> '(+ 3 4)
>
> As, (In smalltalk)
>
> 3 + 4
>
> is to
>
> [3 + 4]
>
> ??? correct? bees in the bonnet? what do you say? ???
>
> m.

No, [3 + 4] == (lambda () (+ 3 4)) in Scheme.

I could be wrong (I don't think I am), but I don't believe Smalltalk has any
syntactical equivalent to a quote to turn code into a data structure.

Ramon Leon
http://onsmalltalk.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise