Phel, un LISP nativo en PHP

Опубликовано: 19 Июль 2026
на канале: Helder
903
36

Meetup: https://www.meetup.com/es-ES/madswcraft

Slack: https://slack.softwarecrafters.org

Twitter:   / madswcraft  

________________________________________

Speaker: Chema   / chemaclass  
Phel:   / phel_lang  

Completely open source: https://github.com/phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP. It is a dialect of Lisp inspired by Clojure and Janet.

Features
Built on PHP's ecosystem
Good error reporting
Persistent data structures (Lists, Vectors, Maps and Sets)
Macros
Recursive functions
Powerful but simple Syntax
REPL

The following example gives a short impression on how Phel looks like:

```phel
Define a namespace
(ns my\example)

Define a variable with name "my-name" and value "world"
(def my-name "world")

Define a function with name "print-name" and one argument "your-name"
(defn print-name [your-name]
(print "hello" your-name))

Call the function
(print-name my-name)
```

You can find all documentation here: https://phel-lang.org/