Email or username:

Password:

Forgot your password?
6 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.

Mythmon

@yosh What's a ConstAsyncFn? A compile time result for something in the future? Are all of these combinations something that makes sense to use in some situation?

Go Up