It might look a bit confusing at times tho. Some examples: let data: MyStruct = fs:: read_to_string(p)?@?; let data: MyStruct = fs:: read_to_string(p)?#?; let data: MyStruct = fs:: read_to_string(p)?%?;
Hmm, yeah I guess ascription in itself isn't quite conversion. It's mostly about removing ambiguity, not converting between types. Maybe syntax for regular Try conversions is where to start? Feels like this circles back to `as` for non-primitives again almost :(
-
-
If you could put `?` in an identifier, then having `from?` and `into?` would be great names. Or like the cast operator: `as?`
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.