1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00
mal/tests/incB.mal
Nicolas Boulenguez e6d41de4d5 load-file: accept empty file or final comment, return nil
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.
2019-07-28 13:08:05 +02:00

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