4 hours ago •
Shannon Prickett reshared this.
(defmacro lambdamoo-chatter-interact (func-name to msg docstring fmtstr &rest vals) "Define a function for interacting with another player" (let ((proc (gensym)) (str (gensym))) `(defun ,func-name (,proc ,str) ,docstring (let ((,to lambdamoo-chatter) (,msg (substring-no-properties (lambdamoo-command-text ,str)))) (if ,to (funcall lambdamoo-send-line ,proc (format ,fmtstr . ,vals)) (message "No chatter specified"))))))
That's awesome. I need to hear my own advice, of course, but don't be inhibited to share something that isn't finished. It's the Fediverse! We're all anarchists! The kind sort, I mean.
Lisp macros are just so powerful.
Wait, how do you get the awesome code formatting? Anybody know how to configure this on fediscience.org?
AM I GOING TO HAVE TO SPIN UP MY OWN INSTANCE AGAIN
@James Endres Howell Frendica has a markdown add-on.
I just typed:
```lisp ...code... ```
This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.
James Endres Howell
in reply to Jonathan Lamothe • • •Jonathan Lamothe
in reply to James Endres Howell • •I'm a little self-conscious about it as non-trivial is relative, but...
Jonathan Lamothe
in reply to Jonathan Lamothe • •James Endres Howell
in reply to Jonathan Lamothe • • •That's awesome. I need to hear my own advice, of course, but don't be inhibited to share something that isn't finished. It's the Fediverse! We're all anarchists! The kind sort, I mean.
Lisp macros are just so powerful.
Jonathan Lamothe
in reply to James Endres Howell • •James Endres Howell
in reply to Jonathan Lamothe • • •Wait, how do you get the awesome code formatting? Anybody know how to configure this on fediscience.org?
AM I GOING TO HAVE TO SPIN UP MY OWN INSTANCE AGAIN
Jonathan Lamothe
in reply to James Endres Howell • •@James Endres Howell Frendica has a markdown add-on.
I just typed:
Typing that however was trickier.
James Endres Howell
in reply to Jonathan Lamothe • • •