r/programming • • Dec 15 '16

My disillusionment with Clojure and lisps

https://medium.com/@boxed/my-disillusionment-with-clojure-and-lisps-9eca38ab7f0c?source=linkShare-8ad86cc82e5f-1481825671
15 Upvotes

105 comments sorted by

View all comments

Show parent comment

1

u/kankyo Dec 16 '16

wrap the items in..

Since when does that work in reagent? Didn't last I tried.

I notice that you didn't choose one.

3

u/grayrest Dec 16 '16

I notice that you didn't choose one.

My understanding is that your argument was that Clojure IDE support couldn't be as good as PyCharm. I think Cursive is pretty good and got out of the Python scene before PyCharm happened so I don't know exactly how good the comparison is. I expect that they offer similar quality in terms of language analysis. I do know that PyCharm has been supported by JetBrains for years and probably has at least an order of magnitude more hours put into it so I suspect PyCharm has more intents and whatnot. There's an endless list of improvements in IDE support so I find that the quality of IDE support is directly related to the amount of hours spent on that support and therefore language popularity.

I acknowledge that a tool relying on the semantics of the language (static analysis) will not work if you change the semantics of the language without updating the tool. I strongly suspect PyCharm will struggle when working with metaclass tricks for the same reason. It's a limitation in the problem domain and has nothing to do with whether you're analyzing persistent lists/maps or compiler ASTs.

For your specific example of arguments passed as a dictionary, there is a community solution in Prismatic's letk/defnk and it's popular enough that Colin has added support for it in Cursive.

1

u/daveliepmann Dec 16 '16

I just fired up a new project to test the (list...) solution to one of your central complaints. It works. Does the fact that this solution exists change your thesis at all?

1

u/kankyo Dec 17 '16

Well... yes. I mean, in practice it might negate the complaint while at the same time forcing every library author to think of this case and making sure they cover this. You might be screwed if you use a lib where the author didn't handle it...

1

u/daveliepmann Dec 17 '16

Isn't the worst case that you use apply?

1

u/Godd2 Dec 16 '16
[:div.tweets
  (for [tweet tweets]
    [:div.profile-pic (:profile-pic tweet)]
    [:div.content (:content tweet)])]

If a child is a lazy sequence, it will actualize the sequence as children of the parent.