mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +03:00
Let `load-file` append a new line in case last line contains a comment. Also append `nil` so that the return value is predictible. Remove the existing explicit `nil` from existing sources. Adapt documentation and tests.
6 lines
151 B
Plaintext
6 lines
151 B
Plaintext
;; A comment in a file
|
|
(def! inc4 (fn* (a) (+ 4 a)))
|
|
(def! inc5 (fn* (a) ;; a comment after code
|
|
(+ 5 a)))
|
|
|
|
;; ending comment without final new line |