leancodepl / leancodepl/corelibrary

Implement `ISpanFormattable` and `ISpanParsable` in source-generated IDs

Open
#468 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
30
Forks
4
Avg merge
1d 7h
Merged PRs (30d)
3

Description

          Can we also add and implement `ISpanFormattable` and `ISpanParsable`? They are very useful when performing string interpolation/formatting (and they would be even more useful if we used any stringlike type (Ulid? :stuck_out_tongue:) that isn't directly supported by STJ).

Originally posted by @Saancreed in https://github.com/leancodepl/corelibrary/pull/466#discussion_r1120013920

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

Start by locating the source-generated ID implementation and reviewing how its current formatting and parsing behavior is defined. Implement the requested ISpanFormattable and ISpanParsable support for those IDs, then verify that formatting and parsing work as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.