4
msdsk
3y

I'm working with an API where, for some reason, half of the numbers are returned as numbers and half as strings. I'm baffled more than David composing hallelujah.

Comments
  • 1
    Is it not statically typed or did someone just grow a brain tumor whilst coding?
  • 1
    @Marl3x

    I have no idea, I just consume it on the front side. I kinda wonder how it looks.
  • 0
    @Marl3x You get the award for the best joke.
  • 2
    sounds like python 😂
  • 1
    Polymorphism is a pain in the ass with some object-json mappers in statically typed languages, so If something can have a numeric value or an enum value (not at all uncommon) it's often simply represented as a string.
Add Comment