We're updating the issue view to help you get more done. 

Optimize deref and invoke on var literals

Description

ClojureScript now emits warning diagnostics on private var use, and employing var indirection is an appropriate means to access private vars. Often code immediately derefs or invokes a literal var form when doing so. For example

1 @#'some-ns.core/private-var

or

1 (#'some-ns.core/private-var arg1 arg2)

We can optimize code gen in these situations, emitting direct access, as opposed to emitting the bulky code associated with Vars.

Environment

None

Status

Assignee

Mike Fikes

Reporter

Mike Fikes

Labels

None

Approval

None

Patch

None

Priority

Minor