Skip to content

Warnings for unitialized fields

Would it be possible to add flag to disable warnings for unitialized fields just when using constructor with zero fields? I mean, if I use

  Foo {}

to construct empty record, it is a bit unpleasant that I get flooded by dozens of useless warnings; but I don't want to disable them -- they are useful when I forget to initialize some field(s).

Zdenek Dvorak

Edited by Simon Marlow
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information