3.4 Using optimized constructs
case
macro by using only fixnum key values within a certain range. the Compiler can then expand the macro into code that jumps directly to a memory location instead of using anif
statement for every case. The Compiler can optimize an application of the case
macro that satisfies the following qualifications:
fixnum
except the last key, which can be the symbolt
, the symbolotherwise
, or a fixnum integer.
(case x (1 'one) (2 'two) (4 'four) (t 'other-num))
Generated with Harlequin WebMaker