RFC: Implement `opaque fromUTF8 (a : @& ByteSlice) (h : validateUTF8 a) : String`
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 9.2k
- Forks
- 990
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 175
Description
Context
the conversion from ByteArray to String was added in https://github.com/leanprover/lean4/pull/3958
Proposal
add function opaque fromUTF8 (a : @& ByteSlice) (h : validateUTF8 a) : String to convert ByteSlice to String too 🙏
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing ByteArray-to-String conversion added in pull request 3958, then inspect the ByteSlice and validateUTF8 APIs referenced in the proposal. Implement the proposed opaque fromUTF8 function for validated ByteSlice values and verify that ByteSlice values convert to String as specified. The issue names no source files or tests, so locating the analogous implementation and its test coverage is the first step.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100