NaevaTheRat [she/her]

Despite all my rage I’m still a rat refreshing this page.

I use arch btw.

Credibly accused of being a fascist, liberal, commie, anarchist, child, boomer, pointlessly pedantic, a Russian psychological warfare operative, and db0’s sockpuppet.

Pronouns are she/her.

Vegan for the iron deficiency.

  • 0 Posts
  • 3 Comments
Joined 5 months ago
cake
Cake day: June 27th, 2024

help-circle
  • Why do people think Python is ducktyped? The syntax is quite explicit, just because x = 5. is shorthand for x = float(5) doesn’t mean it’s doing weird mutations. The closest would be maybe that something like:

    x = 5
    y = 2.
    z = x * y
    

    works (I think) but that’s not exactly a wacky behaviour. It’s not like it ever does the wrong behaviour of casting a float to an int which can erase meaningful data and cause unpredictable behaviour.

    I mean you can (and often should!) give functions/methods type signatures ffs.