fsharp-cheatsheet icon indicating copy to clipboard operation
fsharp-cheatsheet copied to clipboard

Shadowing Section

Open SpiralOSS opened this issue 1 year ago • 0 comments

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

SpiralOSS avatar Nov 14 '23 01:11 SpiralOSS