Nested if, for, while, match, and try statements are key ingredients for making what's known as "Spaghetti code".
if
for
while
match
try
Such code is hard to read, refactor and therefore maintain.