From 89a382723fb3c785fa674abbb2bd244f7a455068 Mon Sep 17 00:00:00 2001 From: jgart Date: Wed, 2 Feb 2022 00:43:11 -0500 Subject: lisp: tips-and-tricks: fix filename extension to use gmi --- topics/lisp/tips-and-tricks.gmi | 16 ++++++++++++++++ topics/lisp/tips-and-tricks.scm | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 topics/lisp/tips-and-tricks.gmi delete mode 100644 topics/lisp/tips-and-tricks.scm diff --git a/topics/lisp/tips-and-tricks.gmi b/topics/lisp/tips-and-tricks.gmi new file mode 100644 index 0000000..792980b --- /dev/null +++ b/topics/lisp/tips-and-tricks.gmi @@ -0,0 +1,16 @@ +# Defining a scheme sexp comment with a reader macro + +=> http://clhs.lisp.se/Body/f_set__1.htm SET-DISPATCH-MACRO-CHARACTER + +``` +CL-USER(1): (set-dispatch-macro-character #\# #\; (lambda (s c n) c n (read s t nil t) (values))) + +CL-USER(2): (+ 3 (+ 2 3) 1) + +9 +CL-USER(3): (+ 3 #;(+ 2 3) 1) + +4 +``` + +Special thanks to Ed Langley on #common-lisp:matrix.org. diff --git a/topics/lisp/tips-and-tricks.scm b/topics/lisp/tips-and-tricks.scm deleted file mode 100644 index 792980b..0000000 --- a/topics/lisp/tips-and-tricks.scm +++ /dev/null @@ -1,16 +0,0 @@ -# Defining a scheme sexp comment with a reader macro - -=> http://clhs.lisp.se/Body/f_set__1.htm SET-DISPATCH-MACRO-CHARACTER - -``` -CL-USER(1): (set-dispatch-macro-character #\# #\; (lambda (s c n) c n (read s t nil t) (values))) - -CL-USER(2): (+ 3 (+ 2 3) 1) - -9 -CL-USER(3): (+ 3 #;(+ 2 3) 1) - -4 -``` - -Special thanks to Ed Langley on #common-lisp:matrix.org. -- cgit v1.2.3