Open digikar99 opened 4 years ago
see deftransform for funcall
Is this any preferable than define-compiler-macro
? (Couldn't locate deftransform for funcall; but reading and learning about deftransform and related. Had taken a break from lisp.)
A brief testing suggests that define-compiler-macro
is good for portable code, but one'd need to take care of cases individually, while deftransform
handles the cases. deftransform
seems convenient but comes at a cost of non-portability.
Also, this is not always possible with apply
due to the last argument being a list, is it?
Verify if you could:
Avoid using
funcall
andapply
(for non-builtin) functions while declaiming inline. This is clear bydisassemble
-ingbar
andbaz
below.Though,
inline
works when it's(funcall '+ ...)
- what makes a function "built-in"? I guessdeftransform
- but not sure.