Closed ChiriVulpes closed 5 years ago
If someone intends to combine two different types into an object, they should do a .merge followed by a .to<type> call, they shouldn't insert into an existing object of a different type.
.merge
.to<type>
Strongly typing this should prevent some bugs in codebases.
If someone intends to combine two different types into an object, they should do a
.merge
followed by a.to<type>
call, they shouldn't insert into an existing object of a different type.Strongly typing this should prevent some bugs in codebases.