3 ms·
Side note, recursion would be slightly easier if the concept of a base case were applied to all functions as preconditions. The idea of a base case really has m
by macintux 9y ago
Side note, recursion would be slightly easier if the concept of a base case were applied to all functions as preconditions. The idea of a base case really has more applicability than just in recursion, it's just that we don't call it a base case in other situations.
Function heads in ML and Erlang make this explicit when used correctly, and I agree.
- ballenf 9y agoAnd I need to learn those languages really before thinking I really know recursion!