winglang / winglang/wing

toStr: need to come up with a mechanism for conversion to str

Open
#741 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

📐 language-design 📜 spec
Dominant language
TypeScript
Stars
5.4k
Forks
215
Avg merge
2h 9m
Merged PRs (30d)
27

Description

We need to design a mechanism to implicitly/explicitly convert primitives and declared types to str.

One of the use cases should be in string interpolation. For example:

let x = 1;
let s = "${x}";

Once we add that mechanism to the spec, we should add a spec-impl issue to the roadmap.

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 with the issue's proposed primitive and declared-type conversions and the string interpolation example. No implementation files or tests are identified, so first determine where the language specification defines strings and interpolation. Done means the conversion mechanism is specified and a spec-impl issue is added to the linked roadmap.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.