There isn't a consistent name scheme for static predicate fields. We should decide on one of these formats:
RIDERS
IS_FOOD
AIR_PREDICATE
IS_AIR_PREDICATE
DOOR_BREAK_DIFFICULTY_CHECKER
IS_DOOR_BREAK_DIFFICULTY_CHECKER
BLOW_UP_FILTER
IS_BLOW_UP_FILTER
PREDICATE
I prefer only FILTER
/CHECKER
suffix without IS
prefix.
I would prefer PREDICATE
suffix without IS
prefix
Imo a predicate is a function, so IS_FOOD
makes the most sense to me, and fits with the style I tend to go with in my personal code.
I also prefer IS_FOOD
or IS_FOOD_PREDICATE
Yes, I also prefer the IS_
suffix. More generally I think we should name Predicate
s and Function
s as if they were methods.
Yes, I also prefer the IS_ suffix.
'Is' or 'can' prefix only: IS_FOOD
I vote for IS_
prefix only. It's just the most concise.
looking back, now i support is prefix. or we can alternatively have a 3rd person present tense verb, like HAS_EFFECT, REQUIRES_SOME_PERMISSION, etc.
Most helpful comment
Imo a predicate is a function, so
IS_FOOD
makes the most sense to me, and fits with the style I tend to go with in my personal code.