From Lawrence D'Oliveiro@21:1/5 to All on Sat Mar 23 05:49:04 2024
Some of my earliest exposure to code written by others was on a DEC
PDP-11 system. So I somehow picked up the habit of writing
section-header comments that look like this:
;+
; Navigation by sections
;-
Of course, this can be adapted to other languages that use different
comment delimiters:
#+
# High-level stuff follows
#-
However, where the language allows block comments (like C), I still
have this fondness for using those instead:
/*
Binary heaps
See definition module for an explanation
*/
So I wrote a pair of simple navigation commands that will match
section-header comments written in all these different formats, and
lets me jump quickly between them: