Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support defining how Enums are stringified #6470

Open
hasanaburayyan opened this issue May 14, 2024 · 0 comments
Open

Support defining how Enums are stringified #6470

hasanaburayyan opened this issue May 14, 2024 · 0 comments
Labels
🛠️ compiler Compiler ✨ enhancement New feature or request 📐 language-design Language architecture needs-discussion Further discussion is needed prior to impl 📜 spec Requires a change in the Language/SDK spec

Comments

@hasanaburayyan
Copy link
Collaborator

hasanaburayyan commented May 14, 2024

Use Case

Wing now supports the ability to define how an enum is stringified

enum Days {
   MONDAY,
   TUESDAY
}

log("{Days.MONDAY}");
// Prints "monday" instead of MONDAY

Proposed Solution

Probably requires RFC

Implementation Notes

No response

Component

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
  • If this issue is labeled needs-discussion, it means the spec has not been finalized yet. Please reach out on the #dev channel in the Wing Slack.
@hasanaburayyan hasanaburayyan added ✨ enhancement New feature or request needs-discussion Further discussion is needed prior to impl labels May 14, 2024
@staycoolcall911 staycoolcall911 added 📐 language-design Language architecture 🛠️ compiler Compiler 📜 spec Requires a change in the Language/SDK spec labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠️ compiler Compiler ✨ enhancement New feature or request 📐 language-design Language architecture needs-discussion Further discussion is needed prior to impl 📜 spec Requires a change in the Language/SDK spec
Projects
Status: 🤝 Backlog - handoff to owners
Development

No branches or pull requests

2 participants