Closed sunxd3 closed 6 months ago
In Setfield, compose a lens with IdentityLens will give back the lens, ref https://github.com/jw3126/Setfield.jl/blob/e31e1e361bd6a251124aa578122e6198b81197b5/src/lens.jl#L148-L152
Setfield
IdentityLens
This behavior can't be reimplemented in Accessors because identity is a Base function.
Accessors
identity
Base
This PR is for backward compatibility.
In
Setfield
, compose a lens withIdentityLens
will give back the lens, ref https://github.com/jw3126/Setfield.jl/blob/e31e1e361bd6a251124aa578122e6198b81197b5/src/lens.jl#L148-L152This behavior can't be reimplemented in
Accessors
becauseidentity
is aBase
function.This PR is for backward compatibility.