wing icon indicating copy to clipboard operation
wing copied to clipboard

Support defining how Enums are stringified

Open hasanaburayyan opened this issue 1 year ago • 0 comments

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 avatar May 14 '24 16:05 hasanaburayyan