Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)DA
DanCardin @programming.dev
Posts 0
Comments 3
Proposing a struct syntax for Python
  • I wouldnt hate its existence, and certainly i would always prefer anyone use this over namedtuple.

    At the same time, i think i would never use it. 90% of my classes these days are dataclasses, and the set that don’t inherit from anything, and have no methods are vanishingly small

    I don’t know that harkening to rust structs makes much sense in python, (…which can have methods)