Feb 24, 2021
Yes, they could be used interchangeably, but I think it is best practice to use access
whenever possible because it is a much clearer descriptor. The only reason I use pub
instead of access(all)
is that access(all)
takes up a lot of space and is distracting because it is used so often. None of the other ones are used as much, so it didn’t seem like as big of a deal.
That is just my preference though. You should do whatever you feel most comfortable with! :)