You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we should allow characters for all, including concat
good idea. Could concat also accept numbers?
The only annoying thing with characters is the special syntax #\. So what you think if we define e.g. whitespace-characters as variable / constant to make it more "lispy" working with characters. For example:
(defvar new-line #\Newline)
(defconstanttab#\Tab)
Also one idea was introducing functions such as new-lines (or new-line?), that contain multiple times the same characters:
(defunnew-lines (lines)
(let ((result ""))
(dotimes (var lines)
(setf result (str:concat result "")))
result))
Since some functions (such as concat) only accept strings.
Therefore sometimes it is convenient to have characters as strings.
E.g.
The we could use it in concat like this:
It could be useful, especially for the whitespace characters (e.g. for space) but maybe also others.
What do you think?
The text was updated successfully, but these errors were encountered: