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
static foreach does not introduce a new scope on its own; instead one has to add a nested set of braces.
Currently, dfmt splits them which wastes a good amount of screen space and might look a bit odd.
Current format
staticforeach (item; items)
{
{
// code here
}
}
staticforeach (item; items) {
{
// code here
}
}
Idea
I’d prefer to have the scope braces right next to the loop braces.
staticforeach (item; items)
{{
// code here
}}
staticforeach (item; items) {{
// code here
}}
The text was updated successfully, but these errors were encountered:
static foreach
does not introduce a new scope on its own; instead one has to add a nested set of braces.Currently, dfmt splits them which wastes a good amount of screen space and might look a bit odd.
Current format
Idea
I’d prefer to have the scope braces right next to the loop braces.
The text was updated successfully, but these errors were encountered: