News for hackers. Stuff that matters.
Re:Phel: A language inspired by Clojure that compiles to PHP by DNied on Friday February 19, 2021 @09:48AM (#26193693)
Very interesting! Maybe preprocessors really are the way to go for PHP, even if it were just for ironing out its inconsistencies (not to mention implementing a whole new language on top of it, as in this case).

But why those square brackets for argument lists? That seems unnecessary.

Re:Phel: A language inspired by Clojure that compiles to PHP by richeyryan on Friday February 19, 2021 @10:22AM (#26194094)
It's a Clojure-ism. The arguments are passed as a vector.

https://clojure.org/guides/learn/functions

Re:Phel: A language inspired by Clojure that compiles to PHP by progre on Friday February 19, 2021 @10:21AM (#26194082)
I'm no lisper but I think arguments are always defined in an array?
Re:Phel: A language inspired by Clojure that compiles to PHP by capableweb on Friday February 19, 2021 @11:32AM (#26194826)
Clearly not a lisper :D But no worries.

No, it's not a array, it's a vector.

And no it's not always defined as a vector, it's a particular trait of Clojure. In Common Lisp you'd use a list "(my arguments)" instead, for example.

Re:Phel: A language inspired by Clojure that compiles to PHP by progre on Friday February 19, 2021 @02:16PM (#26196814)
Always happy to learn, thank you! Clojure is my only real venture in to lisp land (I know some don't consider Clojure lispy enough to be a real lisp)