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 comparing durations with elapsed < 20s syntax #6298

Open
Chriscbr opened this issue Apr 22, 2024 · 1 comment
Open

Support comparing durations with elapsed < 20s syntax #6298

Chriscbr opened this issue Apr 22, 2024 · 1 comment
Labels
✨ enhancement New feature or request 📐 language-design Language architecture

Comments

@Chriscbr
Copy link
Contributor

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

  • 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.
@Chriscbr Chriscbr added ✨ enhancement New feature or request 📐 language-design Language architecture needs-discussion Further discussion is needed prior to impl labels Apr 22, 2024
@monadabot monadabot added this to Wing Apr 22, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New - not properly defined in Wing Apr 22, 2024
@Chriscbr Chriscbr changed the title Support durations for comparison operator, eg elapsed < 20s Support comparing durations with elapsed < 20s syntax Apr 22, 2024
@staycoolcall911 staycoolcall911 moved this from 🆕 New - not properly defined to 🤝 Backlog - handoff to owners in Wing Apr 23, 2024
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 📐 language-design Language architecture
Projects
Status: 🤝 Backlog - handoff to owners
Development

No branches or pull requests

1 participant