rep_lang icon indicating copy to clipboard operation
rep_lang copied to clipboard

feature: sum types & match/case syntax

Open mhuesch opened this issue 3 years ago • 1 comments

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?


migrated from https://github.com/mhuesch/poly-rs/issues/15.

mhuesch avatar Apr 13 '21 16:04 mhuesch