#Reasoning behind deprecating getTrait and adding getOrAdd/getTraitNullable

11 messages · Page 1 of 1 (latest)

pulsar ruin
#

Does it not just make it pointless to have a hasTrait function in combination with these two functions (getOrAdd/getTraitNullable), instead having a hasTrait, getTrait that just returned null if the trait doesn't exist, and then an addTrait function?

foggy lichenBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

keen cypress
#

@pulsar ruin that would have broken backwards compatibility with getTrait

simple idolBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@pulsar ruin