Cysharp / Cysharp/ZString

Add support for interpolated strings via InterpolatedStringHandler

Open
#121 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
2.8k
Forks
192
PR merge metrics
No merged PRs in 30d

Description

...so that appending an interpolated string like this:

sb.Append($"BLAHBLAH {integer}");

behind the scenes this should result in this (pseudo code)

ZString.AppendInterpolatedStringHandler handler = new ZString.AppendInterpolatedStringHandler(9, 1, zstringBuilder);
handler.AppendLiteral("BLAHBLAH ");
handler.AppendFormatted(value);

Contributor guide

No contributing guide indexed for this repository

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

No files or tests are named in the issue. Start by locating ZString's existing Append overloads and the related test coverage, then compare them with the proposed AppendInterpolatedStringHandler entry point. Done means the C# interpolated-string example works through the handler without breaking existing append behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.