Dart 3.7 Released with Focus on Developer Productivity and Wildcard Variables
The Dart team has officially announced the stable release of Dart 3.7, emphasizing developer productivity as the central theme. A significant language update introduces wildcard variables, where parameters and local variables named underscore (_) act as placeholders without creating actual variables. This change prevents name collisions when multiple unused parameters exist but requires renaming if the variable is referenced. Additionally, the release features a completely rewritten Dart formatter with a new style that automatically manages trailing commas in argument lists for improved readability. The team also confirmed the discontinuation of the experimental macros feature to reallocate resources toward other priorities, including build_runner performance improvements, augmentation libraries, and better data serialization support. These updates aim to enhance code consistency and streamline development workflows. The new formatting style applies based on the code's language version, ensuring a smoother transition for existing projects. This release represents a strategic shift in the Dart ecosystem, focusing on practical tooling enhancements and language consistency rather than experimental features like macros.
Wire timeline
Dart 3.7 Released with Focus on Developer Productivity and Wildcard Variables
The Dart team has officially announced the stable release of Dart 3.7, emphasizing developer productivity as the central theme. A significant language update introduces wildcard variables, where parameters and local variables named underscore (_) act as placeholders without creating actual variables. This change prevents name collisions when multiple unused parameters exist but requires renaming if the variable is referenced. Additionally, the release features a completely rewritten Dart formatter with a new style that automatically manages trailing commas in argument lists for improved readability. The team also confirmed the discontinuation of the experimental macros feature to reallocate resources toward other priorities, including build_runner performance improvements, augmentation libraries, and better data serialization support. These updates aim to enhance code consistency and streamline development workflows. The new formatting style applies based on the code's language version, ensuring a smoother transition for existing projects. This release represents a strategic shift in the Dart ecosystem, focusing on practical tooling enhancements and language consistency rather than experimental features like macros.
Dart - Medium