Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on My resignation letter as R7RS-large chair. Parent comment
(define foo (make-foo))
I prefer the Common Lisp version:
(defvar *foo* (make-foo) "*foo* is the current input/output foo object.")
For functions I would define a define macro.
(define foo (make-foo) "foo is a function with two arguments of type bar, it returns ..." (ftype (function (bar bar) baz))
I prefer the uglier, but better standardized and slightly more practical language.
There are no comments on this comment yet.
I prefer the Common Lisp version:
It's clear that DEFVAR usually defines a variable and not a function. Bonus: we can document the thing in a standard way.For functions I would define a define macro.
Which would expand into a (setf fdefinition), a type declaration and setting the documentation.I prefer the uglier, but better standardized and slightly more practical language.