You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A small, yet useful syntactic feature of at least a few other programming languages (Java, D, Crystal, probably others) is the ability to use underscores (_) in numeric literals (integers, floats etc.) for readiblity purposes - which I think would be a nice addition to GDScript, improving the readibility of some larger numbers, allowing for this
varsome_large_number=10_000_000
which is certainly a bit easier to read at a glance than
varsome_large_number=10000000
Which seems fairly in line with GDScript's design goal of being easy to read and learn.
(And while to me it mostly seems maybe-simple-enough to sneak into 3.0 still, I think it would be more appropriate to add in 3.1, which if I recall correctly a bunch of GDScript changes and improvements are planned? If this is desired, that is.)
The text was updated successfully, but these errors were encountered:
akien-mga
changed the title
Feature proposal: Support underscores in numeric literals in GDScript
Support underscores in numeric literals in GDScript
Nov 16, 2017
A small, yet useful syntactic feature of at least a few other programming languages (Java, D, Crystal, probably others) is the ability to use underscores (
_
) in numeric literals (integers, floats etc.) for readiblity purposes - which I think would be a nice addition to GDScript, improving the readibility of some larger numbers, allowing for thiswhich is certainly a bit easier to read at a glance than
Which seems fairly in line with GDScript's design goal of being easy to read and learn.
(And while to me it mostly seems maybe-simple-enough to sneak into 3.0 still, I think it would be more appropriate to add in 3.1, which if I recall correctly a bunch of GDScript changes and improvements are planned? If this is desired, that is.)
The text was updated successfully, but these errors were encountered: