Last Boost:

So Python is getting basic data structures

finally.....

[hot take incoming]

it's almost as though.... being able to make your own types.... makes it easier to write code....

@lizardsquid wait, huh? hasn't python had custom types since,,,, forever??

@lizardsquid huh. good to have, not sure it's doing anything a userland decorator couldn't

@00dani *has no idea what you're talking about because I can't write python*

@lizardsquid the @ syntax in python is called a decorator, and basically it just applies a function to another function or class?

@dataclass
class Blah:
x: int

is precisely identical to
class Blah:
x: int
Blah = dataclass(Blah)

and i'm pretty sure dataclass() can be written as standard python prior to 3.7, without any special language support

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!