I have a struct with two properties one being Lazy and other being the
normal one.When I try to initialise the struct the init function
autosuggests the lazy property to be optional.Ideally the implementation
should be such that, only non lazy and non computed properties must have
been passed to the initialiser.Obviously this could be done through custom
init implementation.But would like to know why its not handled.
Have a look at the image for reference.
<img src=’/uploads/default/original/1X/a0835f803d2d756e2cb20836413a360e969d250e.png’ width=‘690’ height=‘194’>
Department of Electrical Engineering