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.
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.
But why those square brackets for argument lists? That seems unnecessary.