SumTypes.jl

An implementation of sum types in Julia

MIT License

Stars
104
Committers
2

Bot releases are visible (Hide)

SumTypes.jl - v0.5.8 Latest Release

Published by github-actions[bot] 5 months ago

SumTypes v0.5.8

Diff since v0.5.7

Merged pull requests:

  • Improve hygiene of sum_type macro (#79) (@Tortar)
SumTypes.jl - v0.5.7

Published by github-actions[bot] 5 months ago

SumTypes v0.5.7

Diff since v0.5.6

Merged pull requests:

  • Allow constrained type parameters in variant (#78) (@Tortar)

Closed issues:

  • @sum_type doesn't work with constrained type parameter in variant (#73)
  • Can constructors of a sum type be alias of variants? (#77)
SumTypes.jl - v0.5.6

Published by github-actions[bot] 9 months ago

SumTypes v0.5.6

Diff since v0.5.5

Merged pull requests:

  • more macro hygiene (#64) (@MasonProtter)
  • Fix documentation tests in v1.11 (#68) (@MasonProtter)
  • remove unnecessary usage of Expr(:toplevel) (#69) (@MasonProtter)
  • Update link of MixedStructTypes.jl (#72) (@Tortar)
  • Add a precompilation workload (#74) (@Tortar)
  • Fix creation of SumTypes in untyped vector (#75) (@Tortar)

Closed issues:

  • Error when creating SumType in an untyped vector (#66)
  • Strange error when sum_type macro is used inside a begin block (#67)
  • Memory corruption in 0.9.3 (#71)
SumTypes.jl - v0.5.5

Published by github-actions[bot] 9 months ago

SumTypes v0.5.5

Diff since v0.5.4

Merged pull requests:

  • Make it possible to document sum types (#63) (@Tortar)

Closed issues:

  • Doc Comments with @sum_type (#32)
SumTypes.jl - v0.5.4

Published by github-actions[bot] 9 months ago

SumTypes v0.5.4

Diff since v0.5.3

  • SumTypes can now be created with a custom abstract supertype #44

Merged pull requests:

  • Allow abstract type for sum type (#61) (@Tortar)

Closed issues:

  • Allow specifying a supertype (#44)
SumTypes.jl - v0.5.3

Published by github-actions[bot] 9 months ago

SumTypes v0.5.3

Diff since v0.5.2

Merged pull requests:

  • Deprecate getproperty (#60) (@MasonProtter)

Closed issues:

  • mutable sum types? (#57)
SumTypes.jl - v0.5.2

Published by github-actions[bot] 9 months ago

SumTypes v0.5.2

Diff since v0.5.1

Merged pull requests:

  • Explicitly disable getproperty (#59) (@MasonProtter)
SumTypes.jl - v0.5.1

Published by github-actions[bot] 11 months ago

SumTypes v0.5.1

Diff since v0.5.0

  • Added _ as an option @cases to catch all variants.

Merged pull requests:

  • Typo in README (#53) (@DanielVandH)
  • allow _ as the fallback 'wildcard' case (#56) (@MasonProtter)

Closed issues:

  • sum types are not isbits (#52)
  • default in @cases when unpacking is not necessary (#55)
SumTypes.jl - v0.5.0

Published by github-actions[bot] over 1 year ago

SumTypes v0.5.0

This version removes the full_type function because it's now unnecessary. SumTypes no longer have extra computed parameters.

Diff since v0.4.8

Closed issues:

  • Dealing with extra parameters in recursive sumtypes (#30)

Merged pull requests:

  • fix typo in README.md (#46) (@lmiq)
  • typo fix in readme (#47) (@tlienart)
  • Back to union storage (#49) (@MasonProtter)
SumTypes.jl - v0.4.8

Published by github-actions[bot] over 1 year ago

SumTypes v0.4.8

Diff since v0.4.7

Closed issues:

  • Noob question: performance tradeoffs vs. the MLStyle approach to sum types (#29)

Merged pull requests:

  • getproperty bugfix (#45) (@MasonProtter)
SumTypes.jl - v0.4.7

Published by github-actions[bot] over 1 year ago

SumTypes v0.4.7

Diff since v0.4.6

Closed issues:

  • Default @cases? (#31)

Merged pull requests:

  • Repetitive cases (#42) (@MasonProtter)
SumTypes.jl - v0.4.6

Published by github-actions[bot] over 1 year ago

SumTypes v0.4.6

Diff since v0.4.5

Closed issues:

  • StackOverflow in weird usage (#38)
  • Symbols not accessible in modules using only using SumTypes: @sum_type (#39)
  • StackOverflow in show_sumtype usage (#40)

Merged pull requests:

  • Some fixes for type constrained parameters (#41) (@MasonProtter)
SumTypes.jl - v0.4.5

Published by github-actions[bot] over 1 year ago

SumTypes v0.4.5

Diff since v0.4.4

Closed issues:

  • Constructor overloads (#27)
  • README: I think "throw(error" is superfluous? (#33)
  • implement Base.getindex (#34)
  • isvariant feature (#35)

Merged pull requests:

  • fix hygiene of full_type (#36) (@MasonProtter)
  • Add some quasi-internal API nicities (#37) (@MasonProtter)
SumTypes.jl - v0.4.4

Published by MasonProtter over 1 year ago

What's Changed

Full Changelog: https://github.com/MasonProtter/SumTypes.jl/compare/v0.4.1...v0.4.4

SumTypes.jl - v0.4.1

Published by github-actions[bot] over 1 year ago

SumTypes v0.4.1

Diff since v0.4.0

Merged pull requests:

  • fix some convert corner cases (#22) (@MasonProtter)
SumTypes.jl - v0.4.0

Published by github-actions[bot] over 1 year ago

SumTypes v0.4.0

Diff since v0.3.8

Merged pull requests:

  • Compactify storage (#20) (@MasonProtter)
  • Change hidden interface (#21) (@MasonProtter)
SumTypes.jl - v0.3.8

Published by MasonProtter over 1 year ago

SumTypes.jl - v0.3.7

Published by github-actions[bot] over 1 year ago

SumTypes v0.3.7

Diff since v0.3.6

Closed issues:

  • Allow recursive definitions? (#15)
  • TagBot trigger issue (#17)

Merged pull requests:

  • Switch to Bit tags (#18) (@MasonProtter)
  • allow recursive sum types (#19) (@MasonProtter)
SumTypes.jl - v0.3.6

Published by MasonProtter over 1 year ago

SumTypes.jl - v0.3.5

Published by MasonProtter over 1 year ago