Fork me on GitHub
#off-topic
<
2020-03-04
>
sogaiu02:03:20

i found the following sort of construct in someone's code and see that it works, but am curious whether it is "supported":

^#?(:clj {:flavor :clj} :cljs {:flavor :cljs}) [1 2 3]

Alex Miller (Clojure team)03:03:08

(or in other words, yes)

mloughlin09:03:02

anybody feel like explaining to a PL dev why they love Clojure? A found post on HN: https://news.ycombinator.com/item?id=22473380

👍 16
mloughlin09:03:22

> I'm a Programming Language enthusiast, currently making my own language. I'm really curious what makes Clojure different - it's pretty much the most loved language among its proponents (i.e. people love e.g. Rust and Go as well, but not as much as those who love Clojure, love Clojure). Is there any very Clojure-y code you can point to, that would showcase it? Is it just the libraries - collections, concurrency primitives - that could be replicated in another language? It's can be just homoiconicity, as that's just Lisp, but it could definitely be a big part of it... Do you have any ideas what any other language (e.g. Python, TypeScript, Go, Rust, Julia, Haskell, OCaml) would need to change to make you as productive as Clojure?

andy.fingerhut19:03:51

I added a link to the 2020 Clojure survey results. Q12 has some of the answer of what features of the language people find most important to them.

Mario C.20:03:55

This might sound gnarly but to me, Clojure is to programming languages as time-lapse videos are to videos.

dpsutton20:03:57

is that a compliment or not?

Mario C.20:03:20

Watching those time-lapse videos are very satisfying

✔️ 8
Mario C.20:03:46

Like working in the repl and seeing a function being constructed over time rapidly

dpsutton20:03:15

ah. didn't know if timelapse meant "stop motion and jerky" or super charged

Mario C.20:03:58

super charged

spasov20:03:58

Yeah, I have to agree. Even reading the source for the core functions is enlightening!