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.

[image: Inline image 2]
-- 
Pritesh Nandgaonkar
Department of Electrical Engineering
IIT Bomba
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to