19. macro |ˈmakrəәʊ|
noun ( pl. macros )
1 (also macro instruction) Computing a single instruction
that expands automatically into a set of instructions
to perform a particular task.
26. -‐>>-‐>
(-‐>
stuff
(foo
,,,
a)
(bar
,,,
b
c
d)
(baz
,,,
e
f))
(-‐>>
stuff
(foo
a
,,,)
(bar
b
c
d
,,,)
(baz
e
f
,,,))
27. -‐<>-‐>>-‐>
(-‐>
stuff
(foo
,,,
a)
(bar
,,,
b
c
d)
(baz
,,,
e
f))
(-‐>>
stuff
(foo
a
,,,)
(bar
b
c
d
,,,)
(baz
e
f
,,,))
(-‐<>
stuff
(foo
a
<>)
(bar
b
c
<>
d)
(baz
<>
e
f))
48. (ns
foo.core
(:gen-‐class))
(defn
-‐main
"I
don't
do
a
whole
lot
...
yet."
[&
args]
(println
"I'm
a
little
pony"))
foo$
lein
run
I'm
a
little
pony
49. (defn
make-‐example
[]
(proxy
[Object]
[]
(toString
[]
"I'm
a
little
pony")))
user=>
(.toString
(make-‐some-‐example))
"I'm
a
little
pony"
50. class
Example
{
void
someMethod(String
x)
{
someMethod(x,
null)
}
void
someMethod(String
x,
String
y)
{
doSomethingWith(x,
y);
}
}
(proxy
[Example]
[]
(toString
([x]
(proxy-‐super
someMethod
x))
([x
y]
(do-‐other-‐stuff
this
x
y))))