Conversation

the patterns are effectively part of the body *not* the signature in the example here, it's like if you had fn register(arg0: Json<Register>) { let Json(data) = arg0; dbg!(data); } so there's no way a pattern like that can influence something elsewhere in the code
1
9
oh, wait, are you referring to the functional style of defining functions piecemeal? this isn't valid Rust but I guess it *theoretically* could one day be: fn foo(_: Option<u32>) -> u32; fn foo(None) = 123; fn foo(Some(x)) = x; but that'd be sugar for a `match` *inside* `foo`
4
5