Alexander Plavin
Alexander Plavin
Do you really need the inner constructor defined manually? The condition required for everything to work automatically is that your type can be created from its field values, without manually...
> An example of contructorof in the documentation / README could be nice 👍 Yeah, I guess https://juliaobjects.github.io/ConstructionBase.jl/ doesn't give all the details needed to explain `constructorof` from the start......
This is already (partially) supported, by the way: ```julia julia> @set n[(:a, :b)] = (4, 100) (a = 4, b = 100, c = 3) ``` Also see `setall()`, but...
Agree, `setproperties` turns out to be enough more often than I originally expected :) Sometimes I need to set multiple properties/indices in a nested structure (so `setproperties` isn't most convenient),...
Depending on the specific usecase, a recent feature of [AccessorsExtra](https://gitlab.com/aplavin/AccessorsExtra.jl) can be useful: ```julia julia> o = @optic₊ (_.a, _.b) julia> set(n, o, (4, 100)) (a = 4, b =...
This seems to be the oldest open issue on the topic, best to consolidate any potential discussion in one place. Others are https://github.com/JuliaObjects/Accessors.jl/issues/119 and https://github.com/JuliaObjects/Accessors.jl/issues/82. A rough summary of the...
Try the `view`-lens now available in [AccessorsExtra](https://gitlab.com/aplavin/AccessorsExtra.jl): ```julia julia> @set v |> view(_, 1)[].x = 5 2-element Vector{MyT}: MyT(5) MyT(2) julia> v 2-element Vector{MyT}: MyT(5) MyT(2) ``` Suggestions for a...
You may find `RecursiveOfType` recently added to [AccessorsExtra](https://gitlab.com/aplavin/AccessorsExtra.jl) helpful: ```julia julia> x = (a = (1, 2), b = (c = ((3, 4), (5, 6)), d = (7, 8))); julia>...
Added such a two-step recipe to MakieExtra.jl for now: use as `glowtext!` with the same arguments as `text!`. See [docs](https://aplavin.github.io/MakieExtra.jl/test/examples.html) for more details. 
A potentially simple solution would be to always show the "table" icon in variable explorer, and use `columntable` or `rowtable` to actually load data when users click there.