You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As one additional change beyond #2195, let's make sure that naming of methods that turn on (or off) default typing differs from existing methods: although consistency in naming is usually a good thing, in this case it makes sense to "deprecate" old names so that simple code search can find all risky instances of old methods, without having to check argument counts and types.
So: existing methods will remain (but be deprecated, warnings added) as:
enableDefaultTyping() to turn functionality on (with specific constraints)
disableDefaultTyping() to turn functionality off.
setDefaultTyping() to enable with fully custom handler
but replacement methods will named differently:
activeDefaultTyping() to turn functionality on WITH ADDITIONAL VALIDATOR
deactiveDefaultTyping() to turn functionality off.
customDefaultTyping() for turning off with fully custom handling (with warnings to indicate that use requires understanding of validation aspects).
The text was updated successfully, but these errors were encountered:
As one additional change beyond #2195, let's make sure that naming of methods that turn on (or off) default typing differs from existing methods: although consistency in naming is usually a good thing, in this case it makes sense to "deprecate" old names so that simple code search can find all risky instances of old methods, without having to check argument counts and types.
So: existing methods will remain (but be deprecated, warnings added) as:
enableDefaultTyping()
to turn functionality on (with specific constraints)disableDefaultTyping()
to turn functionality off.setDefaultTyping()
to enable with fully custom handlerbut replacement methods will named differently:
activeDefaultTyping()
to turn functionality on WITH ADDITIONAL VALIDATORdeactiveDefaultTyping()
to turn functionality off.customDefaultTyping()
for turning off with fully custom handling (with warnings to indicate that use requires understanding of validation aspects).The text was updated successfully, but these errors were encountered: