Content deleted Content added
fixed claim that this is "bad style" |
m re-installing bad style complaint in a hopefully more NPOV form. the WHY is important |
||
Line 10:
Mutual recursion is very common in the [[functional programming]] style, and is often used for programs written in [[LISP]], [[Scheme programming language|Scheme]], [[ML]], and similar [[programming language|languages]]. In languages such as [[Prolog programming language|Prolog]], mutual recursion is almost unavoidable.
Not all programming styles encourage mutual recursion. Some programmers avoid it because they find it confusing. Specifically it can be difficult to determine the circumstance which will provide non-recursive execution (an answer). Because of this difficulty, some programmers consider mutual recursion to be bad style.
|