minity
minity copied to clipboard
Feature request: Allow `else` statement be in next line
Motivation example
This does not work:
if @s[y_rotation=0] {
say y_rotation=0
}
else if @s[y_rotation=90] { // Error :C
say y_rotation=90
}
else if @s[y_rotation=180] {
say y_rotation=180
}
else if @s[y_rotation=270] {
say y_rotation=270
}
This does:
if @s[y_rotation=0] {
say y_rotation=0
} else if @s[y_rotation=90] {
say y_rotation=90
} else if @s[y_rotation=180] {
say y_rotation=180
} else if @s[y_rotation=270] {
say y_rotation=270
}
Another sugar syntax thing, but really my eyes would be happy for it.