3 ms·
It's not being presented as acceptable code for maintenance or other long-term usage. It's being presented as a terse explanation of what the bug was and how i
by TheDong 8y ago
It's not being presented as acceptable code for maintenance or other long-term usage.
It's being presented as a terse explanation of what the bug was and how it was triggered.
I didn't spend an hour or two understanding that code, I spent less than a minute because I already know rust.
I don't understand your point. The code served its purpose well: for the audience (rust users) it demonstrated the bug (lifetime unsafety in match ergonomics change).
If the audience were "people who don't know rust", then of course that code wouldn't be a good demonstration, but that's not who the audience for this post is.