Based on comments from On the futility of error checking (anecdotal):
Could we deprecate the use of numeric literal suffixes without _
separating them from the value? I.e., these would no longer be allowed:
5i32
2.3e10f64
Instead, the permitted way to write them would be:
5_i32
2.3e10_f64
Additionally, to catch the specific bug that inspired that thread, could we consider requiring a type suffix when using the exponent (e
or E
) literal notation? I.e., this would no longer be permitted:
2.3e10
Instead, it would need to be one of:
2.3e10_f32
2.3e10_f64