Examples of multiple dispatch being useful?

This page summarizes the projects mentioned and recommended in the original post on /r/Julia

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • julia

    The Julia Programming Language

  • https://github.com/JuliaLang/julia/blob/master/base/complex.jl https://github.com/JuliaLang/julia/blob/master/base/rational.jl

  • integrant

    Micro-framework for data-driven architecture

  • I think the main difference in this case is conceptual, i.e. in Clojure you have a concrete piece of data (which you can send over the wire, etc), and you dispatch off a value from that data; so it's really intuitive and straightforward, no magic at all. While with types, you have to introduce some overhead (e.g. define the singletone type, or parse the value and wrap it in a type (possibly breaking all the code that uses it), etc). See e.g. this, where you dispatch directly on a key in a configuration map.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts