2 ms·
I agree, I'm just waiting for someone to explain why I should care; what's the reason to not declare the pin statically as either or? I mean, I could easily co
by codr7 3y ago
I agree, I'm just waiting for someone to explain why I should care; what's the reason to not declare the pin statically as either or?
I mean, I could easily come up with a contrived example that Rust can't do as well, but what's the point?
- detaro 3y ago> what's the reason to not declare the pin statically as either or? That for plenty uses cases, pins are not statically either or, but are switched at runtime. (and the article really fails IMHO by not showing that, because doing that while keeping compile-time checks is the hard part, and its limits would be really interesting)