SumTypes.jl

An implementation of Sum types in Julia (by MasonProtter)

SumTypes.jl Alternatives

Similar projects and alternatives to SumTypes.jl

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better SumTypes.jl alternative or higher similarity.

SumTypes.jl reviews and mentions

Posts with mentions or reviews of SumTypes.jl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-23.
  • Enums in Rust – and why they feel better
    2 projects | news.ycombinator.com | 23 Nov 2023
    An interesting aspect of sum types (what Rust calls enums) is that you can implement them in the language as a library if you have real unions, but not vice-versa.

    Here's my example of sum types being implemented in julia as a regular package: https://github.com/MasonProtter/SumTypes.jl

  • From Julia to Rust
    14 projects | news.ycombinator.com | 5 Jun 2021
    > Pattern matching

    MLStyle.jl [1] is quite nice for this and has been around for a while.

    > Tagged, closed unions

    These are less general than 'real' unions and can be implemented using them. E.g. SumTypes.jl [2] has some macros to make it a bit more convenient to define them, it could use some other quality of life features though.

    [1] https://thautwarm.github.io/MLStyle.jl/latest/syntax/pattern...

    [2] https://github.com/MasonProtter/SumTypes.jl

Stats

Basic SumTypes.jl repo stats
2
91
7.8
3 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com