Total Functional Programming

9 thoughts
last posted July 21, 2014, 7:01 a.m.

2 earlier thoughts

0

Standard approach without Total FP

Rather than make everyone actually deal with partial functions by checking the inputs or results of partial functions, programming languages generally will either:

  • throw an error or exception of some sort either aborting the program entirely or providing a try/catch mechanism to handle this generically for a section of code
  • run forever using 100% CPU if there's an infinite loop/recursion and no stack overflow or out of memory occurs

6 later thoughts