Skip to content

Proposal: do not use parenthesis when using single non-compound statements #102

@jgoc

Description

@jgoc

The parenthesis will be confusing if there are extra parenthesis surrounding it. Parenthesis could simply be used for grouping compound statements like if (true==true) || true { and the character count could also be reduced.

Before:

<%= if (true) { %>
  <!-- some html here -->
<% } %>

After:

<%= if true { %>
  <!-- some html here -->
<% } %>

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalA suggestion for a change, feature, enhancement, etc

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions