vindarel / cl-str

Modern, simple and consistent Common Lisp string manipulation library.
https://vindarel.github.io/cl-str/
MIT License
305 stars 37 forks source link

Remove lexical functions' repetitive parameters #77

Closed kilianmh closed 2 years ago

kilianmh commented 2 years ago

Loading of STR on SBCL results in compiler notes:

; in: DEFUN PAD ; (STR::PAD-CHAR STR:PAD-CHAR) ; note: deleting unreachable code ; note: deleting unreachable code ; note: deleting unreachable code

This stems from the lambda list parameters of the lexical functions' %pad-left, %pad-right, and %pad-center. As solution the lambda-lists are left out, while the (unchanged) functions use the parameters supplied to the main PAD function. This reduces some code, might (slightly) improve performance, and gets rid of the compiler notes.

vindarel commented 2 years ago

ooh indeed. Thanks!