Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jgoc opened this issue Nov 22, 2019 · 1 comment
Open
Labels
proposal A suggestion for a change, feature, enhancement, etc
Milestone

Comments

@jgoc
Copy link

jgoc commented Nov 22, 2019

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 -->
<% } %>
@sio4 sio4 added the proposal A suggestion for a change, feature, enhancement, etc label Sep 5, 2022
@github-actions
Copy link

github-actions bot commented Oct 5, 2022

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

@github-actions github-actions bot added the stale label Oct 5, 2022
@sio4 sio4 added this to the Proposal milestone Oct 6, 2022
@sio4 sio4 removed the stale label Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal A suggestion for a change, feature, enhancement, etc
Projects
None yet
Development

No branches or pull requests

2 participants