ds-guard icon indicating copy to clipboard operation
ds-guard copied to clipboard

Guard by Default

Open cyberience opened this issue 5 years ago • 0 comments

Would it not be cleaner and use 1 less mapping if we were to set a default state variable, for example, defaultGuard = True Then you only need to maintain a single list of excaptions to the default, so if the default is Guard unless allowed, then the mapping would contain a white list, if the status is Allow, then it would be a black list. Of course, having more states than a single logic would work, I just feel having 2 address arrays is additional storage that is not space efficient, and what would happen if a Single address managed to get into both lists? My years of development have taught me to only have single source of truth.

cyberience avatar Mar 01 '19 02:03 cyberience