by burnzonaut · 2y ago · 0 comments
That said, the article was an entertaining read and the blog is pleasantly styled. I’m glad I spent some time with this even though my ultimate takeaway is kind of “meh”.
That’s indeed the point.
Go has proven at this point that the language spec is the correct place to settle stupid bike sheding especially when they lead to misfeature like this one.
I understand that it’s not the most urgent thing to fix when it comes to Rust syntax but still a clear downside.
// whoops, accidentally commented out or deleted this import
// use crate::{SOME_GL_CONSTANT, OTHER_THING}
// uh oh!
match value {
SOME_GL_CONSTANT => ..,
OTHER_THING => ..,
_ => ..,
}
Specifically, I think FFI stuff or an initial Rust rewrite can be a strong incentive to (locally) disable compiler/linter warnings around capitalization because you are more interested in consistency with an existing C API. This turns the molehill into at least a real hill (though not a mountain).