2 ms·
> you can just initialize with a constant or variable or just use a procedure to initialize with. Is there an option to leave something uninitialized? I often
by fc417fc802 2y ago
> you can just initialize with a constant or variable or just use a procedure to initialize with.
Is there an option to leave something uninitialized? I often find the allocation of explicitly uninitialized objects to be a performance necessity in tight loops when I'm working with numpy.
- O-stevns 2y agoYes, as mentioned here on the overview: https://odin-lang.org/docs/overview/#built-in-constants-values-and-procedures https://odin-lang.org/docs/overview/#built-in-constants-valu... x: int // initialized with its zero value y: int = --- // uses uninitialized memory