ChezScheme
ChezScheme copied to clipboard
Three argument `~^` is not supported
Per the CSUG,
Chez Scheme's implementation of format supports all of the Common Lisp [30] format directives except for those specific to the Common Lisp pretty printer.
However, the up-and-out/escape upward directive ~^ does not support three arguments:
If a prefix parameter is given, then termination occurs if the parameter is zero. (Hence ~^ is equivalent to ~#^.) If two parameters are given, termination occurs if they are equal. If three parameters are given, termination occurs if the first is less than or equal to the second and the second is less than or equal to the third.
(format "appears~0^ does not appear")
>>> "appears"
(format "appears~1,1^ does not appear")
>>> "appears"
(printf "appears~2,3,4^ does not appear")
>>> Exception in format: too many parameters in ~^ directive "~2,3,4^"