Hacker News new | ask | show | jobs
by throwawaymaths 189 days ago
'const expected = [_]u32{ 123, 67, 89, 99 };'

constant array with u32, and let the compiler figure out how many of em there are (i reserve the right to change it in the future)

1 comments

'const expected: []const u32 = &.{ 123, 67, 89, 99 };' also works.