Welcome! Please see the About page for a little more info on how this works.

0 votes
in Compiler by

Currently, while nonsensical, it is technically possible to recur to a ^:once fn** point.

The current patch make attempting to do so a compile time error.

This is useful so that code like (future (recur)) doesn't compile, giving users the impression that it's supposed to work (see comments at https://dev.clojure.org/jira/browse/ASYNC-185 for an example)

Patch: 0001-CLJ-2317-disallow-recur-to-once-fn.patch

2 Answers

0 votes
by

Comment made by: bronsa

FWIW this immediately caught a 3yo bug in tools.reader https://github.com/clojure/tools.reader/commit/ae46bf5fb85c108b9806cf6430f24a2c7698e170

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-2317 (reported by bronsa)
...