Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 846 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 846 Bytes

AccessMacro

Build Status

Coverage Status

codecov.io

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.

Usage

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"