Handbook
Glossary
strip-default-methods ( -- )
Vocabulary
tools
.
deploy
.
shaker
Word description
In a development image, each generic has its own default method. This gives better error messages for runtime type errors, but takes up space. For deployment we merge them all together.
Definition
USING:
generic.single
io.streams.c
kernel
memory
sequences
tools.deploy.config
;
IN:
tools.deploy.shaker
:
strip-default-methods
( -- )
strip-debugger?
[
"Stripping default methods"
show
[
single-generic?
]
instances
new-default-method
[
strip-default-method
]
curry
each
]
when
;