Skip to content
Turtle Kitty edited this page Aug 9, 2015 · 1 revision

send

This core function sends messages to objects.
In fact, the dot operator is just syntactic sugar for send.

foo.bar -> (send foo (quote bar))

send is most useful when calculating what message to send an object dynamically.

(send foo (if predicate 'bar 'baz))
Clone this wiki locally