What is (()?) And ()? means fast?

var aa: (()?) = (john.residence?.address = someAddress)
var bb: ()? = john.residence?.printNumberOfRooms()

      

Does it only share zero?

+3


source to share


1 answer


()

- an empty tuple type (same as Void

).

()?

is a complementary version of this.



(()?)

is a set containing a type ()?

, so it boils down to just()?

+6


source







All Articles