Skip to content

Avoid Using Semicolons (;). #159

@iRon7

Description

@iRon7

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedGreat spot for someone to pitch in

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions