Skip to content

Conversation

@connie-ooi
Copy link
Contributor

@connie-ooi connie-ooi commented Oct 14, 2025

Resolves #6285
Resolves #6689

Files changed:

  • examples/language/lib/classes/shorthand.dart
  • src/content/language/dot-shorthands.md
  • src/content/language/enums.md
  • src/content/language/extension-methods.md
  • src/content/language/index.md
  • src/data/sidenav.yml

Link to page previews:

@connie-ooi connie-ooi marked this pull request as draft October 14, 2025 22:27
Copy link
Member

@kallentu kallentu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for writing this up.

child: Text('Hello')
)
);
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also don't know if we do this, but do we ever link to the actual spec in documentation? I feel like if users wanted a full, exhaustive rundown of the feature, it'd be nice to get to the spec to read. @antfitch Do you have any guidance here?

Copy link
Collaborator

@antfitch antfitch Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antfitch
Copy link
Collaborator

@connie-ooi and @kallentu, after you've finished your review, let me know and I'll start my review. I'll be focusing on flow. If any technical changes are required, @kallentu, I'll pull you in.

@connie-ooi connie-ooi self-assigned this Oct 22, 2025
@dart-github-bot
Copy link
Collaborator

dart-github-bot commented Oct 22, 2025

Visit the preview URL for this PR (updated for commit f3889af):

https://dart-dev--pr6941-dotshorthands-9ckdrfhh.web.app

Copy link
Member

@kallentu kallentu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, thanks for making all the changes.

@connie-ooi connie-ooi changed the title add initial draft of dot shorthands feature add dot shorthands feature Oct 27, 2025
@antfitch antfitch changed the title add dot shorthands feature [Dart 3.10] dot shorthands feature Oct 27, 2025
Copy link
Member

@parlough parlough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hard work on this @connie-ooi! I love it so far :D

I haven't looked through all of the code yet, but I wanted to leave some initial comments and questions until I have time to do so:

@parlough parlough marked this pull request as ready for review October 28, 2025 16:41
@parlough parlough changed the title [Dart 3.10] dot shorthands feature [Dart 3.10] Document dot shorthands Oct 28, 2025
Copy link
Collaborator

@antfitch antfitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! I have a few structural changes and additions related to rules.

Co-authored-by: Parker Lougheed <[email protected]>
Copy link
Collaborator

@antfitch antfitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! When @parlough has given final signoff, merge this ASAP. Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dart 3.10 Dot Shorthands [Dot Shorthands] Add Dot Shorthands to the language docs

5 participants