fsharp-cheatsheet
fsharp-cheatsheet copied to clipboard
Shadowing Section
Maybe shadowing deserves an individual section? you used open type
above for another reason, but for me a key thing that trips people up is how DU cases shadow others and/or type names. I always used to open a DU's module, but really open type
on the DU brings less stuff in.
Not sure the "AuotOpen would sidestep thi"s is going to be grokked by someon scanning a cheatsheet...
Originally posted by @bartelink in https://github.com/fsprojects/fsharp-cheatsheet/pull/30#discussion_r1390366431