Today I'll illustrate how discriminated unions in F# can contribute to reducing code size and complexity, compared to a typical object-oriented approach. I'll present a problem, model it in typical object-oriented C#, then in typical functional F#, and contrast both approaches.
The problem: evaluate expressions of the form 1 + 2 * 3. The...
The problem: evaluate expressions of the form 1 + 2 * 3. The...
