I can not understand this line of code :
(defun loop?_0 (x) (eql x 4))
"?" is a part of the function's name ? or something else !?
(defun loop?_0 (x) (eql x 4))
"?" is a part of the function's name ? or something else !?
Discuss and learn Lisp programming of all dialects
This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.
4 posts · 2913 views
(defun >__< () (princ "(>__<)"))
(defun *.* () (princ "(*.*)"))
(defun @_= () (princ "(@_=)")
(defun ^..^ () (princ "(^..^)")
; which you can use like this:
(>__<) (*.*) (@_=) (^..^)
But you don't really have to use them...mparsa wrote:I can not understand this line of code :Lisp allows you to use all ascii-characters (IIRC, could be printable ascii characters) or unicode characters, depending on the native character set of your implementation, in symbol names, with the exception of the space, the #, the \, the @, the `, the ' and the ( and ) (I might be missing one). So, it's perfectly fine to use a!=b? as the name of a function.
(defun loop?_0 (x) (eql x 4))
"?" is a part of the function's name ? or something else !?