jonocarroll,
@jonocarroll@fosstodon.org avatar

How have I not made this connection before??? #rstats' S3 dispatch mechanism is strikingly similar to #rust's trait system (provided your mental model is sufficiently flexible and can compare function call vs method, that distinction perhaps being the reason I hadn't).

Barely a handful of minutes into https://youtu.be/EXd-bHyk0dM and I had to pause to contemplate.

With that said, #julia's approach is even nicer; multiple dispatch with no ceremony; just write out the definition for each signature.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • Leos
  • provamag3
  • cisconetworking
  • megavids
  • lostlight
  • All magazines