wing
wing copied to clipboard
A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
### Use Case I'm trying to set an expiry date (TTL) on a dynamodb field, and want to say the current date + 3 minutes in the future. With Wing...
### Use Case So you can write code like this: ```js let tenMin = 10m; let now = datetime.utcNow(); let tenMinAgo = now - tenMin; ``` ### Proposed Solution _No...
### Feature Spec Wing now supports bringing specifying constants as shared/public by a module (Wing file), and then bringing them into other Wing modules. ### Use Cases Reusing information (supporting...
### Description Show some examples of how `@target` can be used to change the configuration of a bucket or change inflight logic based on whether you're running on one cloud...
### Use Case Trying to add some features or changes to the Wing console and I could not find any guides in our contribution guide to get started. https://www.winglang.io/contributing ###...
### Use Case If you are initializing a new `Map` or `Json` object and one if its keys is a variable (not a fixed string), then it's not easy to...
### Use Case As a user, I'd like a way to generate "bindings" so that I can use any TypeScript library from npm (or a local TypeScript package) in my...
### I tried this: ```js let route: str? = spec.ingress?.path ?? spec.route; ``` ### This happened: ``` let route: str? = spec.ingress?.path ?? spec.route; // -------------------------------------^^^^^^^^^^ Expected type to be...
### I tried this: Giving an explicit type annotation for a variadic function: ```js let t5: (...Array): num = (...arr: Array) => { let var total = 0; for x...
### Feature Spec Keyword arguments are not positional by definition, and there could be stylistic reasons to want to put them before positional arguments. Consider (beautiful): ```js new cloud.Function(timeout: 1m,...