cat from sex-macros should accept more than two arguments at a time #75
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
catandcat-symsinsex-macros.scmare fixed at two arguments:Macro authors building a name from more than two pieces therefore have to nest:
and a direct call fails:
Please make
catandcat-symsvariadic, preserving the current behavior for two arguments:cat-symsshould have the same arity behavior and return the concatenated string.catis injected into every macro body via(only sex-macros cat comment), so making it variadic is source-compatible and would remove the nesting noise from macros that generate longer names.Tests: add cases for 0, 1, 2, and 3+ arguments for both
catandcat-syms, and keep the existing two-argument behavior covered.