Fast, simple accessors for the vast majority of cases where that's all that's needed. There are many (perhaps too many) modules that provide more flexibility and a plethora of other features, but this one makes a virtue of its simplicity. The pragmatic, lower case name is nice as well, as it slots in naturally alongside other compile-time conveniences.
My only gripe is that I'd prefer accessors::classic to be called accessors::rw (for read-write) - it's fewer characters to type (which is the point, after all) and more descriptive; and I'd like it to be complemented by a read-only version, accessors::ro.
Added a star as accessors::ro and accessors::rw have been added.
7 out of 7 found this review helpful. Was this review helpful to you? Yes No