Allows user to implement getter or setter at compile time.