3 ms·
The braces could be automatically added or removed by any editor, so I don't see the problem, unless someone wants to write code like: if a == b { do this
by prirun 4y ago
The braces could be automatically added or removed by any editor, so I don't see the problem, unless someone wants to write code like:
if a == b {
do this
} else {
do that
}
- mumblemumble 4y agoArguments about what's easy to do in any editor lose a bit of their shine in the post-GitHub era. Barring the development of a really good language-aware semantic diff algorithm that I'm guessing doesn't exist yet, you really do need to have a consistent coding standard everywhere if you want to avoid injecting unnecessary chaos (and, in this case, accessibility challenges) into exactly the parts of the modern software development lifecycle where code readability is most important.