Skip to content

Instantly share code, notes, and snippets.

@mfikes
Last active August 26, 2015 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/04889045fffc20617287 to your computer and use it in GitHub Desktop.
Save mfikes/04889045fffc20617287 to your computer and use it in GitHub Desktop.

For Planck, I needed to build an index on the Google Closure sources. So I did so, by hacking together some regexs on deps.js.

Only recently did I learn that my "hack" was essentially already in ClojureScript. Spookily even down to the aspects of prefixing with "goog/" and memoizing the hack fn:

Planck's memoized hack: here

ClojureScript's equivalent: here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment