Skip to content

This repo provides a macro that automatically creates access functions

License

Notifications You must be signed in to change notification settings

dharasim/AccessMacro.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

This repo provides a macro that automatically creates access functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages