Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Programming at the REPL (2018). Parent comment
#+BEGIN_SRC lisp (+ 1 2) #+END_SRC #+RESULTS: : 3
If you use noweb it'll also include referenced blocks in the evaluated unit:
#+NAME: foo #+BEGIN_SRC lisp (defun foo (n) (+ 1 n)) #+END_SRC #+BEGIN_SRC lisp :noweb yes <<foo>> (foo 2) #+END_SRC #+RESULTS: : 3
#+BEGIN_SRC lisp :tangle foo.lisp <<foo>> <<bar>> #+END_SRC
I've mainly used this (for interactive development) with Common Lisp, but it should work for most other languages that offer similar interactivity.
There are no comments on this comment yet.
If you use noweb it'll also include referenced blocks in the evaluated unit:
This lets you have many versions of code in one file (if that's a sensible thing for you, very useful when exploring a new library or concept though), and in the end you can aggregate it all into one source file for sharing with others: (type C-c C-v C-t to create the file)I've mainly used this (for interactive development) with Common Lisp, but it should work for most other languages that offer similar interactivity.