JuliaServices / AutoHashEquals.jl

A Julia macro to add == and hash() to composite types.
Other
58 stars 12 forks source link

Interoperate with Base.@kwdef #33

Open gafter opened 1 year ago

gafter commented 1 year ago

@nystrom says in a comment on JuliaServices/AutoHashEqualsCached.jl#1:

Just FYI for when you process Base.@kwdef: fields in these structs can also be :(=) nodes with the field name and type in args[1] and the default value in args[2].

gafter commented 1 year ago

Also src/Compiler/Shared/auto-copy.jl in raicode

gafter commented 1 year ago

@kwdef also adds constructors that this package needs to be prepared to update.

gafter commented 1 year ago

This will allow raicode to eliminate this comment:

# @auto_hash_equals is incompatible with @kwdef, so we have to roll our hash and equality.