Pardeep Sharma
02/01/2023, 3:02 AMephemient
02/01/2023, 3:08 AMbuilder::build
is bound to builder
Pardeep Sharma
02/01/2023, 3:12 AMephemient
02/01/2023, 3:12 AMPardeep Sharma
02/01/2023, 3:20 AMephemient
02/01/2023, 3:23 AMbuilder.build()
, then builder::build
also takes no arguments. it is bound to `builder`: the receiver is already pre-set to builder
, as in { builder.build() }
. why would you expect the type to contain an additional argument type?ephemient
02/01/2023, 3:25 AMBuilder
), Builder::build
is not bound to an instance, so it does take an argument, similar to { builder -> builder.build() }
. note the difference between a type and an instance on the left-hand side of ::
Pardeep Sharma
02/01/2023, 3:27 AMmodelBuilder: suspend (model: T?) -> Either<T, Error>
ephemient
02/01/2023, 3:29 AMbuilder.build()
then where do you expect the model
parameter to go?Pardeep Sharma
02/01/2023, 3:34 AM