Crystal allows declaring uninitialized variables:
x = uninitialized Int32 x #=> some random value, garbage, unreliable
buffer = uninitialized UInt8
The buffer is allocated on the stack, avoiding a heap allocation.
The type after the
uninitialized keyword follows the type grammar.
To the extent possible under law, the persons who contributed to this workhave waived
all copyright and related or neighboring rights to this workby associating CC0 with it.