nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqtur5q74qw6kz26pheh7qt6wjttt8z207d9ruhuts6lj9y7fsg4qsurwqy8 isn’t the code you need to write just that one function that you’d need to write anyway?

My argument would be be that you reduce the chance of bugs, as you aren’t importing a lot of unused code.

That’s just my 2 pence, though.

Reply to this note

Please Login to reply.

Discussion

nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqpq2m743ytcvz7n3ytksrw0ctprf3jtmtdnaewaz0qxsu6z4c2u6sjtuafq nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqtur5q74qw6kz26pheh7qt6wjttt8z207d9ruhuts6lj9y7fsg4qsurwqy8 To me, it sounds like a very specific use-case that a general library might not be able to handle, since the original question seems to imply you want to convert from one type of DTO to another.

… Unless what you really mean is that both objects are the same type but you just want to copy (i.e., clone) one, while changing a single property?