— It's just all so much more code for just 1 more parameter though
The problem with feature detection is that you can't know if the root properties like whitelist are part of the search index or not...
— So it would be a required root property, no assumptions allowed
— And yeah I totally stress out over these interfaces lol
— Very optimistic coding style🤤
— Using shared state is usually really bad unless you do it correctly
— You might say setting some value of an object on the fly and expecting different behavior is technically a side effect
Message permanent page
— What's wrong with just doing this?
bfs(obj, null, blacklist)
— With the null replacing whitelist for when you only want to use blacklist
— TRGWII ^ ?I feel like having to put null to only use the blacklist is the most easy of all these ideas
— Well, yeah, it might be
— But it's sort of ugly and PHP-ish too