You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got a notice on Twitter of someone figuring out that https://doc.rust-lang.org/rand/rand/trait.Rng.html#method.gen_range doesn't include high as they couldn't read [low, high). While that is standard math interval notation, not everyone using rand knows how to read it. A good way to express the end-exclusiveness without adding a lot of boilerplate everywhere could be worthwhile. Maybe a short notation glossary?
(Also, sorry for the title, I couldn't resist)
The text was updated successfully, but these errors were encountered:
Got a notice on Twitter of someone figuring out that https://doc.rust-lang.org/rand/rand/trait.Rng.html#method.gen_range doesn't include
high
as they couldn't read[low, high)
. While that is standard math interval notation, not everyone usingrand
knows how to read it. A good way to express the end-exclusiveness without adding a lot of boilerplate everywhere could be worthwhile. Maybe a short notation glossary?(Also, sorry for the title, I couldn't resist)
The text was updated successfully, but these errors were encountered: