guan404ming commented on PR #399:
URL: https://github.com/apache/tvm-ffi/pull/399#issuecomment-3808998072

   Thanks for bringing up the discussion! I agree with keeping the design 
simple. While return type deduction is nice, explicit type specification is a 
fair trade-off to keep the API clean.
   
   I think type deduction works for most cases. For exceptions, users can 
simply use like `Expected<long>::Ok(x)`. For a foundational library like 
`tvm-ffi`, the complexity of `PartialExpected` isn't worth the marginal benefit 
in my opinion. This strikes the right balance between simplicity and usability.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to