issues
search
MystPi
/
bella
🐶 Bella ⌁ A simple functional programming language ⌁ Written in Gleam!
MIT License
20
stars
3
forks
source link
✨ Pattern matching
#8
Closed
MystPi
closed
7 months ago
MystPi
commented
10 months ago
[x]
?fun
Boolean match patterns?
Extremely powerful user-defined match patterns
Would most likely need to be coupled with
as
if implemented
Enables typeof checking such as
?string
or
?number
... this would mean more builtins (
Types
record is perfect for this)
[x]
as
binop for naming subpatterns?
Could this binop be used in other parts of code? I'm thinking no. It would be weird to have two ways of creating variables outside of patterns.
?fun
Boolean match patterns?as
if implemented?string
or?number
... this would mean more builtins (Types
record is perfect for this)as
binop for naming subpatterns?