I think this is fine. You could also have a helper function that does the checking and is called by the inner constructor. If you define it inside the type it will only be accessible to the inner constructor (and other functions within the type).
- [julia-users] multiple inner constructors Yakir Gagnon
- [julia-users] multiple inner constructors Toivo Henningsson
- Re: [julia-users] multiple inner constructors Kevin Squire
- Re: [julia-users] multiple inner constructo... Yakir Gagnon