Saltar al contenido

Phel, a native LISP for PHP

Foto de Chemaclass
Hosted By
Chemaclass
Phel, a native LISP for PHP

Detalles

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/

Photo of Software Crafters Madrid group
Software Crafters Madrid
Ver más eventos
Evento en línea
Este evento ya se ha celebrado