rfc:explicit_octal_notation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:explicit_octal_notation [2020/11/07 08:33] – Add explicit mention of upper case notation. girgias | rfc:explicit_octal_notation [2020/11/07 08:50] – Flesh out section about numeric strings. girgias | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | PHP's literal octal notation can lead to some confusing results such as <php>" | + | PHP's literal octal notation can lead to some confusing results such as <php>16 === 016</ |
This convention for octal integers is well established and followed by many programming languages (Java, C, C#, Golang, Haskell, and more). However, Python, JavaScript, and Rust [[https:// | This convention for octal integers is well established and followed by many programming languages (Java, C, C#, Golang, Haskell, and more). However, Python, JavaScript, and Rust [[https:// | ||
Line 35: | Line 35: | ||
< | < | ||
- | Therefore, this RFC has no impact on numeric strings. | + | Numeric strings in PHP are //always// decimal. Analogous to the example from the introduction < |
+ | |||
+ | This RFC has no impact on the behaviour of numeric strings. | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== |
rfc/explicit_octal_notation.txt · Last modified: 2021/01/04 20:12 by girgias