Skip to content

Pattern matching #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ShalokShalom opened this issue May 4, 2025 · 1 comment
Open

Pattern matching #211

ShalokShalom opened this issue May 4, 2025 · 1 comment

Comments

@ShalokShalom
Copy link
Contributor

ShalokShalom commented May 4, 2025

One very fundamental tool for functional programming I am missing.

Pattern matching is a technique that is very well known from the Erlang, OCaml, Haskell, etc communities and I love to see it in Yuescript.

Fennel has some, but I dont like to use a lisp. 🤭

There are some implementations in native Lua, but I would like to use them in Yuescript natively.

@pigpigyyy
Copy link
Member

Tried partially implemented table matching to provide some of the pattern matching functions.
You may take a look and give me some ideas about what are still missing. https://yuescript.org/doc/#table-matching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants