GH-196 pattern matching lhs #701

Merged
zxq9 merged 6 commits from GH-196-pattern-matching-lhs into lima 2020-01-15 17:41:04 +09:00
Showing only changes of commit 911c54eda0 - Show all commits

View File

@ -6,6 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Added ### Added
- Allow separate entrypoint/function type signature and definition, and pattern
matching in left-hand sides:
```
function
length : list('a) => int
length([]) = 0
length(x :: xs) = 1 + length(xs)
```
- Allow pattern matching in list comprehension generators (filtering out match
failures):
```
function somes(xs : list(option('a))) : list('a) =
[ x | Some(x) <- xs ]
```
### Changed ### Changed
- FATE code generator improvements. - FATE code generator improvements.
### Removed ### Removed