Readability is why I use "closing flags" so I don't get lost in a sea of closing curly brackets. Example:
if ($TreeHasLeaves) {
Write-Host -f green "The variable TreeHasLeaves is $($TreeHasLeaves)"
}; #end if TreeHasLeaves
My "GilLang" auto-adds these closing flag comments after each closing bracket - currently it only supports Powershell, but the goal is to streamline basic coding (if/then, for/foreach, do/while, try/catch) in many languages. To create the above function statement, curly brackets included, just type use "New-FunctionStatement if TreeHasLeaves -Powershell".