I have the following integer literal:
let centre: u64 = 0b00000000_00000000_00111100_00111100_00111100_00111100_00000000_00000000;
It is a chessboard, so I think it would be much better to format it like this:
let centre: u64 = 0b
00000000
00000000
00111100
00111100
00111100
00111100
00000000
00000000;
However, the above example does not compile, since newlines are interpreted as spaces inside my literal. Is there any way to achieve this?
source
share