winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.68k stars 181 forks source link

Support defining how Enums are stringified #6470

Open hasanaburayyan opened 2 weeks ago

hasanaburayyan commented 2 weeks ago

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