Hacker News new | ask | show | jobs
by CJefferson 1790 days ago
While this rant is excessive, I do see some of the annoyance, for example looking at: https://doc.rust-lang.org/core/cmp/trait.PartialOrd.html

The top talks about lt, le, gt, ge, but then the docs below talk about '<' and '>', which I assume are lt and gt? But then there seems to be no requirements in le and ge? I assume everything needs to be consistent?

Also (relating to auto-ref), why does 'a<b' work, when the trait takes a reference?

EDIT: Some of this is revealed if I scroll down and look at the definitions of 'lt' and friends, but I'm already pretty confused at the top.

EDIT 2: This really wasn't worth the effort of defending, but I made an issue with my comments on PartialOrd.