You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PowerShell practice and style guide has a rule for: Avoid Using Semicolons (;) as Line Terminators.
I wonder whether there is a general readability recommendation for avoid Using Semicolons (;), period (at all), meaning:
Don't put multiple statements in a single line but instead spreading them over multiple lines, thus:
Rather than:
if ($Condition) {
Write-Host'Exiting...'; return
}
do:
if ($Condition) {
Write-Host'Exiting...'return
}
The text was updated successfully, but these errors were encountered:
I generally agree with that statement except that it contains twice the definition lines (and line) where they should slightly differ as one (lines, maybe use "statement" or "command lines") is a subset from the other line.
(I am not sure of the correct wording either, but somehow I think they should differ.)
The PowerShell practice and style guide has a rule for: Avoid Using Semicolons (
;
) as Line Terminators.I wonder whether there is a general readability recommendation for avoid Using Semicolons (
;
), period (at all), meaning:Don't put multiple statements in a single line but instead spreading them over multiple lines, thus:
Rather than:
do:
The text was updated successfully, but these errors were encountered: