Mauro
Mauro
Hmm, interesting. Syntax example?
Maybe a more natural syntax would be `ABC{X=Int32}()`, which of course doesn't work. @jpsamaroo, do you have a need for this (the original or the add-on by you)? Otherwise I'm...
lol, I take 20 days to reply, you take 3 minutes! Sorry about that. Ok, sounds reasonable to me. Let's go with the syntax you proposed.
Ok, another approach could be to use the pattern advocated here: https://juliaobjects.github.io/ConstructionBase.jl/stable/#type-tips-1. I.e. the original example would then need an extra field: ```julia using Parameters # Helper type to store...
Yes, that should be fine. I don't use ArgCheck.jl myself, but PR is welcome.
There seems to be something brewing with `@assert`: https://github.com/JuliaLang/julia/pull/25576#issuecomment-358358758
`@kwdef` only defines an outer constructor, whereas `@with_kw` defines both inner and outer. There seems to be a reason for that: https://github.com/mauro3/Parameters.jl/blob/870131fa4114af141b4c40d8275259e5d19e444b/src/Parameters.jl#L518, but I'm not sure this still applies.
A breaking change would probably be to fix #96 to be consistent with `@kwdef`. This would mean to deprecate the reconstruct-constructor (in favor of using Setfield.jl, probably).
Hmm, maybe we should make OrderedCollections compatible with 1.2?
That's not good. As a quick work-around you can use the `@with_kw_noshow`. Related, I think the printing should leave away the types of the fields.