lean-ja / lean-ja/lean-by-example

インデントを自動的に除去する生文字列リテラル

Open
#2,591 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

メタプログラミング 付録アイデア 構文・パーサ
Dominant language
Lean
Stars
188
Forks
15
Avg merge
9h 8m
Merged PRs (30d)
6

Description

インデントが入るせいで、生文字列リテラルはコードのスタイルを崩すのが難点であった。それを自動的に削除することもできるのでは?

これはPython3.16へ提案されたd-stringから着想を得ている

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

The issue proposes automatically removing indentation from raw string literals, inspired by Python 3.16's d-string proposal. No files, tests, or implementation entry points are identified, so first locate the raw-string literal implementation and existing examples or tests. Done means the intended indentation behavior is defined and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.