SuperEnum.jl

Julia enum made nicer
Author kindlychung
Popularity
9 Stars
Updated Last
1 Year Ago
Started In
September 2018

SuperEnum

https://ci.appveyor.com/api/projects/status/github/kindlychung/SuperEnum.jl?branch=master&svg=true&retina=true

Julia enum made nicer

Usage

@se Vehical plane train car truck

julia> Vehical.VehicalEnum
Enum Main.Vehical.VehicalEnum:
plane = 0
train = 1
car = 2
truck = 3

julia> Vehical.car
car::VehicalEnum = 2

julia> @se Lang zh=>"中文"*"Chinese" en=>"English" ja=>"日本语"
Main.Lang

julia> string(Lang.zh)
"中文Chinese"

julia> Lang.fromstr("中文Chinese") == Lang.zh
true

Required Packages

No packages found.

Used By Packages