This package provides a convenience macro that automatically creates access functions. They, for example, can be used to abstract from the internal representation of an object.
julia> using AccessMacro
julia> @access struct Foo{S, T}
x :: S
y :: T
end
Foo
julia> x(Foo(1, "2"))
1
julia> y(Foo(1, "2"))
"2"