Dear String-to-Integer Parsers
17 days ago
- #parsing
- #E-notation
- #standard-library
- Proposal for parser functions that distinctly return success (integer value) or rejection (no half-way results).
- Suggestion to include 'E' notation in integer parsing for easier input of large round numbers (e.g., '1E9' for a billion).
- Argument against hex-parser confusion, emphasizing 'E' notation should only apply to decimal parsing.
- Proposal to reject pathological cases (e.g., string length checks) by ensuring parser behavior aligns with intuitive number representation.
- Future idea: 'H' notation for hex numbers (e.g., '1H3' for 4096).
- Criticism of counting zeros for large numbers, advocating for 'E' notation as a practical alternative.