Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
pistolero (p@fsebugoutzone.org)'s status on Thursday, 21-Nov-2024 15:26:29 JSTpistolero @lanodan @NonPlayableClown @Yoruka @ins0mniak Yeah, it was alleged that this would make control flow easier and functions more legible, but this is not remotely true. Pascal enforces it, if I recall correctly, or it at least used to. I don't know how they were convinced by the reasoning; guard clauses let you narrow the number of cases under consideration as you walk down the function, obviously easier to read and write.