2. Purge tuples
Which is cleaner? It depends.
This is just a matter of clean code.
Also needed: Rename a variable/function/parameter
3. Move discriminated union to subtype
Usually coder starts with the first one…
But the data (string*int) is so much easier to access in the later one!
Even later, it may not be clear that what sub-types belongs to where in the type
hierarchy
5. Pattern match to If-else
Usually in case of booleans (or when-patterns)
Back-conversion not possible, if left-hand-side compare condition is not the same
11. Strip un-used computation
expression wrapping
Just minor cleanup if Async (or other monads) are not really used to bind any
data to computation
12. Basic object-oriented features
Generate a base class (and move some methods to there)
Create and/or Implement interface
So that user doesn’t have to remember interface-syntax
13. Simple pattern/snippet to make a
simple MailboxProcessor
So that user doesn’t have to remember the whole syntax
Or a way to convert existing list/dictionary to a MailboxProcessor…