Quelqu'un peut-il m'éclairer pour savoir pourquoi ce bit de code crache que le X est dangereux dans 'try', eh bien je sais pourquoi, mais plus encore comment y remédier.Erlang Gestion des erreurs, X dangereux dans 'try'
try X = lists:append(lists:zipwith3(fun(X, Y, Z) -> [X, Y, Z] end, Data1, Data2, Data3)) of
MP -> X
catch K -> (X = 0)
end.
%MP = [lists:zipwith3(X, Y, Z) || X, Y, Z <- [Data1, Data2, Data3]],
P = X