-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
https://github.com/SimpleMachines/smCore/wiki/Coding-Standards
Proposed amendment: opening bracket on the same line for conditional blocks. i.e.
if ($condition) {
// do stuff
}
respectively,
while (true) {
// do even more interesting stuff
}
Obviously, it saves space, and it is still very readable. It is a style used for a long time by many projects, and allows one to see more on a page, while still catching it at a glance.
Not strictly related, it may even allow us to have brackets for one-line statements, while not agglomerating the view anymore (by much).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels