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

Need label documentation #6289

Open
1 task
medz opened this issue Dec 21, 2024 · 0 comments
Open
1 task

Need label documentation #6289

medz opened this issue Dec 21, 2024 · 0 comments
Labels
co.request Community ask for documentation from.user Issue raised by user

Comments

@medz
Copy link

medz commented Dec 21, 2024

What information needs to be added?

In Dart, label is supported for level jump. However, there is almost no description in the Dart documentation website.

This is the only mention I found: https://dart.dev/language/branches#:~:text=%3A%0A%20%20%20%20executeOpen()%3B-,continue%20newCase%3B,-//%20Continues%20executing%20at

Label is really simple and can be used as an advanced method to optimize performance:
https://github.com/medz/alien-signals-dart/blob/main/lib/src/system.dart#L257

I am using the label function to eliminate recursive calls, so the performance of the propagate function is improved by about 10%.

To be honest, it is difficult to find the description and support of labels in the dart documentation.

Where should this new content appear?

I hope to see information and instructions about labels in https://dart.dev/language/branches. It also indicates that Dart supports this feature.

I would like to fix this problem.

  • I will try and fix this problem on dart.dev.
@medz medz added co.request Community ask for documentation from.user Issue raised by user labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co.request Community ask for documentation from.user Issue raised by user
Projects
None yet
Development

No branches or pull requests

1 participant