leanprover / leanprover/lean4

RFC: Implement `opaque fromUTF8 (a : @& ByteSlice) (h : validateUTF8 a) : String`

Open
#11,585 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

RFC
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.