I haven't seen anyone talk about such extreme proposals. As you can see, try fn
will be desugared into explicit Ok
and Err
. The closest thing is @scottmcm's suggestions to restrict ?
to try
context, but:
- It will discussed only in preparation to post-2018 epoch.
- I am not sure if it will find enough support. (I am personally pretty much undecided on this right now)
Originally I suggested something very similar to you proposal, but this questions is the biggest stumbling block. Plus even one keyword is a heavy price to pay, nevertheless two.