Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://en.wikipedia.org/wiki/Comment_(computer_programming)
- https://en.wikipedia.org/wiki/Lisp_(programming_language)
- https://www.gnu.org/software/emacs/manual/html_node/elisp/Comment-Tips.html
- https://stackoverflow.com/questions/6365334/lisp-commenting-convention
- Haskell : Line comments start with '--' (two hyphens) until the end of line,
- and multiple line comments start with '{-' and end with '-}'.
- BF : [-][*]
- In Common Lisp:
- ;;;; At the top of source files
- ;;; Comments at the beginning of the line
- (defun test (a &optional b)
- ;; Commends indented along with code
- (do-something a) ; Comments indented at column 40, or the last
- (do-something-else b)) ; column + 1 space if line exceeds 38 columns
- Note: Emacs doesn't fontify #| |# very well, but as Rainer suggests in the comments, try using #|| ||# instead.
- I'd say there are no rules to use this one, but I reckon it's faster for commenting huge amounts of code, or to insert some long description where the semicolons just get in the way of editing, like huge BNF listings or the like.
- --
Advertisement