lubieowoce/sumtype
View on GitHub ↗ ★ 28 Python
A namedtuple-style library for defining immutable sum types in Python.
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2018-08-31 · latest 2020-05-13
20082026
-
…3.5) --- btw, i went with a similar approach (i.e everything is codegened) in my sum type library: http://github.com/lubieowoce/sumtype i never got around to generating the methods lazily, maybe i should! for correctness reasons i switched…
comment by uryga · 2020-05-13 · in Cluegen – Python Data Classes From Type Clues -
…since people reading this might be interested, i made something similar for Python a while ago: https://github.com/lubieowoce/sumtype
comment by uryga · 2019-03-31 · in Algebraic Structures for Untyped Racket -
…plug: [0]) and looking for ways to improve it, though of course it has different constraints. [0] https://github.com/lubieowoce/sumtype
comment by uryga · 2018-08-31 · in Value-Oriented Programming