Alexander Plavin

Results 348 comments of Alexander Plavin

Also, just curious: is there an actual simple example of Requires making a package load noticeably slower, when only a few lines are within `@require`? Eg with `Setfield.jl` or another...

> I don't see any earlier comments from you Hm, that must be my unfamiliarity with the interface here. Github marks my older comment as "pending", maybe it's only visible...

As for Requires overhead: so, unfortunately no simple example anywhere?

#23 looks a bit over my head - not even talking about implementation, I don't fully understand the interface and usecases. Extracting values with `Elements` and `If` is probably much...

> The use case is reconstructing arbitrary immutable objects with new/modified field values. That describes the whole `Accessors.jl` :) With simple lenses in Accessors, it's pretty clear when to use...

@jw3126 thanks for the detailed explanation! Do you think there's space for functions like `get_all(obj, optic)` and `set_all(obj, optic, values)` that extract all specified values as some sort of collection?...

Yes, I understand the usecase "replace all values of this type to this type" now: like the GPU conversion or Float bitness. Probably, I even wanted something like this, once...

Suppose I have an optic like `opt = @optic _.a |> Elements() |> _.b |> Properties()`. Does `Query` provide a way to get all elements referred to by this optic,...

A major point of composability is the ability to just pass an optic, and let the inner function do whatever it wants with the values specified by that optic. Currently,...

Sorry, do you agree with something, or arguing with something from my previous message?