Prefer PORO over `T::Struct`
T::Struct
has runtime performance implications that can lead to around 5x slower code over the equivalent Plain Old Ruby Object (PORO). See the rubocop-sorbet
rule Sorbet/ForbidTStruct
for more info.
T::Struct
has runtime performance implications that can lead to around 5x slower code over the equivalent Plain Old Ruby Object (PORO). See the rubocop-sorbet
rule Sorbet/ForbidTStruct
for more info.