-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another bunch of fixes and Clojure stuff #165
Conversation
Great! Nice to see Wisp getting some love! |
(install-macro! :-> expand-thread-first) | ||
|
||
(defn expand-thread-last |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no test for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't found a single test for existing macros, so I didn't add any for new ones. Though I guess it wouldn't hurt adding tests for wisp.expander
…
@LeXofLeviafan now that this has had review I'm happy to pull the trigger on this one whenever you are ready. Up to you whether you want to address those other two things but I don't see why they should block this PR going in. |
@chr15m The third thing is more of a question, so it certainly doesn't block anything (methinks) :-) |
@LeXofLeviafan which option will cause the least disruption to existing codebases? Or are they about the same? I'm strongly in favour of backwards compatibility and not breaking people's existing software. |
@chr15m originally |
Thank you for the further explanation. @LeXofLeviafan if I do I think one of the features that sets Wisp apart from ClojureScript is that you get the native JS types by default without having to use the There is probably a great deal of complication I am missing here, so thanks for your patience! |
@chr15m The |
Ok gotcha. I haven't checked but I think if Wisp allows you to do the same alias changing thing with vector and hash-map then we should support the With regards to supporting incoming JS |
@chr15m Well, both vectors and dictionaries are currently parsed as literals, but quoted lists ( |
High wizardry! |
Curious to try this out when it’s pushed to npm.
… On 1 Dec 2019, at 01:25, Chris McCormick ***@***.***> wrote:
High wizardry!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
…Incidentally, all discussed changes (except for macros tests) have been implemented, so unless you want some other changes to be made (or for someone to review last two commits) I'd consider this pull-request completed. |
Thank you, will merge today and put out a new release on npm. |
Great news. Should we start thinking about more kinds of automated tests here too?
… On 3 Dec 2019, at 21:25, Chris McCormick ***@***.***> wrote:
Thank you, will merge today and put out a new release on npm.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
If by "start thinking about" you mean "submitting PRs implementing" then yes. ;) |
@LeXofLeviafan I have merged your PR into master on my local, done a
The tests are passing on this PR on Travis though. I've verified my local version of Node is the same as the one running CI. Any ideas? |
@chr15m There's no |
@LeXofLeviafan thanks for the pointer, this was the issue. 👍 |
I just had being getting bunch of notifications from wisp repo lately & wanted to thank you all for the joy I’ve being experiencing seeing it improved. I also want to share why originally As of lists intentions were the same “no runtime” for compiled programs (In my experience lists were only used by the compiler & macros). |
The "no runtime" thing is fantastic. Something I've been having fun with lately is compiling bits of ClojureScript UI to vanilla JS using Wisp and then adding a sprinkle of JS shims to patch over missing native functions. With this technique I've been able to make artifacts as small as An example is here. This Thank you so much for making Wisp. 🙏 |
Made several fixes for sequence functions, including making them work on all supported kinds of sequences. Also implemented a few more
clojure.core
things – sequence functions, syntax macroes, parsing of#inst
, and#{}
(based on JSSet
, so I changed the name toidentity-set
).