Proposal to Adopt the Namespaced Interfaces Pattern as a Best Practice for IC Developers

Maybe I’m missing something, but can’t we use variant type instead of namespaced-function names? In the transfer example, the proxy function can take variant { ext_nft: TransferRequest; departure_nft: (Principal, Text) }, then we can pattern match on the variant tag to call the corresponding service?

2 Likes