Email or username:

Password:

Forgot your password?
2 comments
yosh

@jhpratt good question! Presumably if we add try closures, we should be able to represent them in the type system.

It’s not super clear whether that should be TryFn, or Fn -> Result / Fn -> Option, etc. But there are definitely cases where we can’t know the concrete type, so there’s an argument to be made for dedicated TryFn traits.

Jacob Pratt

@yosh Ah, I interpreted that as a list of combinations that already existed, not what the future would be without keyword generics.

Go Up