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

[TC39 Proposal] Usability Study of Do Expressions #28

Open
codehag opened this issue Sep 26, 2024 · 0 comments
Open

[TC39 Proposal] Usability Study of Do Expressions #28

codehag opened this issue Sep 26, 2024 · 0 comments
Labels
Available HCI Research into HCI Frameworks or using HCI research techniques on Proposals

Comments

@codehag
Copy link
Collaborator

codehag commented Sep 26, 2024

https://github.com/tc39/proposal-do-expressions

Do expressions expose a spec internal concept (completions) as something that the user can use. However, users have been somewhat confused about do expressions in certain cases. For example

let x =(do {
  while (cond) {
    // do something
  }
});

What is the value of X? Some users would say an array. To limit confusion, this is an early error. But there are other interesting questions to be asked here which I forget because the student we had working on this abandoned it. We would need to refresh and talk to the champion to pick this back up.

@codehag codehag added HCI Research into HCI Frameworks or using HCI research techniques on Proposals Available labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Available HCI Research into HCI Frameworks or using HCI research techniques on Proposals
Projects
None yet
Development

No branches or pull requests

1 participant