A short post on how variable names can leak out of macros if there is a name collision with a constant. I thought this was a delightful read!
A short post on how variable names can leak out of macros if there is a name collision with a constant. I thought this was a delightful read!
Maybe a good idea for a post. But the amount of reaches required makes this icky.
instead oflet Ok(x) = read_input() else { return Err(Error) };
let x = read_input().map_err(|_| ...)?;
instead ofconst x: &str = "...";
const X: &str = "...";
Maybe there is a reason after all why almost no one (maybe no one, period) was ever in that situation.
Also:
I don’t think you understood the blog OP!