Originally posted by uid313
View Post
Announcement
Collapse
No announcement yet.
Vim Creator Bram Moolenaar Aiming To Improve Vim Performance With Vim9 Fork
Collapse
X
-
Originally posted by jrdoane View Post
...and Java is at the top, but that doesn't mean that I want to write it. It also helps that Clojure runs on the JVM and that I have the entire Java ecosystem to work with. I don't always choose what I get to write, but when I do, it's Clojure.
There are so many other interesting languages like C#, Python, Kotlin (for those who like JVM) and Go, Swift, Rust, etc.
Comment
-
Originally posted by uid313 View PostTo be honest, I can't even read Clojure. I have no idea how it works or what it does. It looks super confusing to me. I could never code in any Lisp dialect.
Code:(+ 1 2 3)
Defining functions isn't horrible.
Code:(defn my-function [arg-1 arg-2 arg-3] (+ arg-1 arg-2 arg-3))
Code:(my-function 1 2 3)
Code:(map symbol? '(my-function 1 2 3))
Code:(true false false false)
Honestly, I didn't want to learn Clojure way back when and I also found it hard to read, but it has completely changed how I write code in other languages and it has become one of my favorites to write. There are a lot of advantages to a language that's homoiconic, functional, encourages immutability through and through, while running on a widely used platforms (The JVM, JavaScript, and the CLR.)
- Likes 6
Comment
-
Originally posted by uid313 View PostEither way, if Python and JavaScript are too big, then there is Lua.
If only systemd would use Lua for whatever they do, or network manager, we could finally have smart scripts that know the difference between routing tables, and we could finally have multihomed hosts without doing it all by ourselves.
Comment
Comment