3 ms·
Would be pretty cool to use multiple dispatch, a la Julia. The encryption function knows which one you're using based on the types you pass as arguments.
by adammarples 3y ago
Would be pretty cool to use multiple dispatch, a la Julia. The encryption function knows which one you're using based on the types you pass as arguments.
- dan-robertson 3y agoI would not find that cool. I think for a typical crypto use case: (A) you want to use exactly one encryption method (eg no algorithm negotiation) (B) you want to be very careful about calling the right functions with the right arguments Relying on compiler magic doesn’t sound good for that to me. Though the grandparent comment does seem to go against (A) so maybe the situation is different.