-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
brainstormingIdea-dumping and feedback on said idea dumpsIdea-dumping and feedback on said idea dumps
Description
As I was refactoring the Interval module, it occurred to me that there are a few opportunities for some really fancy Haskell.
Wouldn't it be really cool if, instead of working with values that describe other values (see: the two notions of Quality), these "describer" values were types?
That is, instead of Quality being a type with values Major, Minor, etc, why not have types Major, Minor, etc. that describe values such as Chord and Interval?
This would take away some of the run-time computational burden (around, for example, doing arithmetic on qualities), and, with care, would let us sit back while our types do all of the heavy lifting (for a fairly high up-front cost.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
brainstormingIdea-dumping and feedback on said idea dumpsIdea-dumping and feedback on said idea dumps