rewrite-clj

https://github.com/clj-commons/rewrite-clj
borkdude 2019-08-25T15:21:18.020100Z

@lee I'm stripping down some of your rewrite-cljc code down to the bare essentials of what I need for sci. What does ^not-native mean in [#?(:cljs ^not-native reader :default reader)] ?

lread 2019-08-25T15:29:01.023800Z

Hi @borkdude! I decided to carry over all hints from rewrite clj and cljs without fully understanding them all or if they are still relevant/needed. This one is described briefly here: http://rundis.github.io/blog/2015/clojurescript_performance_tuning.html

borkdude 2019-08-25T15:37:44.024Z

thanks !

borkdude 2019-08-25T21:16:23.024300Z

@lee Distilled it down to ~ 140 lines: https://github.com/borkdude/sci/blob/master/src/sci/impl/parser.cljc

lread 2019-08-25T21:18:30.024800Z

Cool! Will put on my todo to have a study!

borkdude 2019-08-25T21:19:32.025400Z

the difference with rewrite-clj(sc) is that it parses directly into EDN values with line and col as metadata

borkdude 2019-08-25T21:19:48.025800Z

so in that regard it's much more simplistic

borkdude 2019-08-25T21:23:19.026800Z

the reason I "needed" this is to throw more informative error message when a user uses an unresolved symbol for example, I can show where in the code that was

borkdude 2019-08-25T21:24:34.027300Z

when writing bigger scripts, it becomes annoying to have only "x is unresolved" in 100 lines of code