Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: ERLANG-0.1
-
Component/s: Erlang
-
Labels:None
-
Number of attachments :
Description
Create a rule to check is the method tail recursive:
it is tail recursive if the last statement is a return or a recursive call
(handle branches)
The logic is the following:
if the arity of the actual call is equal to the arity of the actual function and there is no non tail recursive call registered in that function clause we check the following: