Make descriptive I/O names primary in the prelude - #19
Draft
isomorphisms wants to merge 10 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make long, descriptive snake_case I/O names the canonical Prelude.IO definitions and move alternate spellings into naming-style alias modules.
Structure:
Prelude.IOcontains only the canonical language-facing operations such aswrite_out_string_of_characters,write_out_character,ingest_character, andingest_line_of_characters.Prelude.Aliases.Idrisderives the traditional Idris compatibility names (putStr,putChar,getChar,print, etc.) from those canonical definitions.Prelude.Aliases.PlainEnglishgroups the currently selected alternate plain-English spellings by naming style rather than scattering synonyms beside each operation.Preludepublicly imports both current alias packs, so existing Idris source remains compatible and the selected basic-operation spellings remain reserved in the ordinary Prelude namespace.The primitive/runtime foreign bindings are unchanged.
Charremains described as a single-byte character andStringremains the separate string-of-characters surface.parse_*is intentionally not used for stdin reads because those operations ingest input rather than parse text into another value.