Lawrence D'Oliveiro
2024-02-24 05:52:01 UTC
I see that Fortran uses the underscore in integer and real literals as a
special suffix delimiter, followed by a code number or name to indicate
the type of the literal. Pity they didn’t follow the convention in some
other languages, where this is ignored so it can be used as a grouping
delimiter, just for readability, to avoid the “drowning in digits” effect.
E.g. in Python this is a valid integer literal
18_446_744_073_709_551_615
and this is a valid real literal:
3.141_592_653_589_793
special suffix delimiter, followed by a code number or name to indicate
the type of the literal. Pity they didn’t follow the convention in some
other languages, where this is ignored so it can be used as a grouping
delimiter, just for readability, to avoid the “drowning in digits” effect.
E.g. in Python this is a valid integer literal
18_446_744_073_709_551_615
and this is a valid real literal:
3.141_592_653_589_793