A simple calculator in TDD approach using F#
The whole codebase may seem a deliberate effort to make a simple thing overly complicated. However, my goal was to understand how to organize F# projects.
This repository is a result of series blog posts listed below:
- Part-1, creating the basic solution structure and creating a generic stack.
- Part-2, creating the a calculator that operates on Reverse Polish Notation. Only managed to get two integer operands working in this part.
- Part-3, correcting the previous mistakes, updating the Rpn calculator to work with more than two operands of any kind (int or decimal) with any binary operator known to the calculator.
- Part-4, Organizing modules and namespaces, adding support for both binary and unary operations, support for adding new operations externally.