3 ms·
Good point, I'd forgotten Some and None are indeed needed to de-sugar for. Do you know of anywhere else the actual language guts need them ?
by tialaramex 4y ago
Good point, I'd forgotten Some and None are indeed needed to de-sugar for. Do you know of anywhere else the actual language guts need them ?
- masklinn 4y agoI can't think of an other one, but I won't claim exclusive knowledge of the language's desugaring.
- jenadine 4y agoThe `?` operator works with Option. I know it is actually through the Try trait internally, but since it is only implemented for a few built-in type, it makes Option special.
- masklinn 4y agoMeh. That's just because it's an experimental / unstable trait. That Rev or Peekable implement TrustedLen does not make them special.