|
|
|
|
|
by saila
1538 days ago
|
|
I prefer code in this style too: if something:
return something
if something else:
return something else
return default
It's not applicable everywhere, but where it is, it seems tidier to me than the alternative: if something:
return something
elif something else:
return something else
else:
return default
Edit: The article basically says the same thing. I just had a hard time parsing all that C at first. |
|
The former is often not possible (or idiomatic) in expression based languages however.