Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

possible feature: sum types & match/case syntax #15

Closed
mhuesch opened this issue Nov 9, 2020 · 1 comment
Closed

possible feature: sum types & match/case syntax #15

mhuesch opened this issue Nov 9, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mhuesch
Copy link
Owner

mhuesch commented Nov 9, 2020

I think match/case is necessary for implementing sum types.

how else can you do case analysis?

(match r
  [ (L l_body) ((+ 1) l_body) ]
  [ (R r_body) 7 ])

^ we might not even have to do any deeper pattern matching - 1 level only?

@mhuesch
Copy link
Owner Author

mhuesch commented Apr 13, 2021

migrated to neighbour-hoods/rep_lang#18.

@mhuesch mhuesch closed this as completed Apr 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant