Dev page created for overriding compile-time var values at expression granularity

8 views
Skip to first unread message

Andy Fingerhut

unread,
May 28, 2012, 4:16:51 AM5/28/12
to cloju...@googlegroups.com
http://dev.clojure.org/display/design/Overriding+compile-time+var+values+at+expression-level+granularity

It includes links to previous discussions on this group related to the topic, and has a proof-of-concept implementation of a new special form I called compile-time-let as an attached patch file.

There are short code examples demonstrating the proposal.

My personal motivation for this idea is to make it easy to disable reflection warnings on individual subexpressions of a function, but leave them enabled for most of your project all of the time, to catch new uses of reflection that you unintentionally add during development. This would be especially useful for Clojure core and contrib libraries, where efficiency is a concern.

Andy

Reply all
Reply to author
Forward
0 new messages