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....
@00dani it's now got this: https://realpython.com/python-data-classes/
@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
@lizardsquid wait, huh? hasn't python had custom types since,,,, forever??