winglang / wing

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

Support comparing durations with `elapsed < 20s` syntax #6298

Open Chriscbr opened 7 months ago

Chriscbr commented 7 months ago

Use Case

Support comparing datetime values with the <, <=, >, and >= operators.

e.g.

let elapsed = 12s;
assert(elapsed < 20s, "Operation took too long");

Proposed Solution

No response

Implementation Notes

No response

Component

Language Design

Community Notes

github-actions[bot] commented 4 months ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!