Skip to content

Commit e42b99e

Browse files
committed
Add export clauses to features classification
1 parent f479f4b commit e42b99e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/docs/reference/features-classification.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,17 @@ Since these are additions, there's generally no migration cost for old code. An
3535

3636
These features replace existing constructs with the aim of making the language safer and simpler to use, and to promote uniformity in code style.
3737

38-
- [Trait Parameters](https://dotty.epfl.ch/docs/reference/other-new-features/trait-parameters.html) replace [early initializers](https://dotty.epfl.ch/docs/reference/dropped-features/early-initializers.html) with a more generally useful construct,
38+
- [Trait Parameters](https://dotty.epfl.ch/docs/reference/other-new-features/trait-parameters.html) replace [early initializers](https://dotty.epfl.ch/docs/reference/dropped-features/early-initializers.html) with a more generally useful construct.
3939
- [Implied Instances](https://dotty.epfl.ch/docs/reference/contextual/instance-defs.html)
40-
replace implicit objects and defs, focussing on intent over mechanism,
41-
- [Inferable parameters](https://dotty.epfl.ch/docs/reference/contextual/inferable-params.html) replace implicit parameters, avoiding their ambiguities,
42-
- [Extension Methods](https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html) replace implicit classes with a clearer and simpler mechanism,
40+
replace implicit objects and defs, focussing on intent over mechanism.
41+
- [Inferable parameters](https://dotty.epfl.ch/docs/reference/contextual/inferable-params.html) replace implicit parameters, avoiding their ambiguities.
42+
- [Extension Methods](https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html) replace implicit classes with a clearer and simpler mechanism.
4343
- [Opaque Type Aliases](https://dotty.epfl.ch/docs/reference/other-new-features/opaques.html) replace most uses
44-
of value classes while guaranteeing absence of boxing,
45-
- [Toplevel definitions](https://dotty.epfl.ch/docs/reference/dropped-features/package-objects.html) replace package objects, dropping syntactic boilerplate,
44+
of value classes while guaranteeing absence of boxing.
45+
- [Toplevel definitions](https://dotty.epfl.ch/docs/reference/dropped-features/package-objects.html) replace package objects, dropping syntactic boilerplate.
46+
- [Export clauses](https://dotty.epfl.ch/docs/reference/new-features/export.html)
47+
provide a simple and general way to express aggregation, which can replace the
48+
previous facade pattern of package objects inheriting from classes.
4649
- [Vararg patterns](https://dotty.epfl.ch/docs/reference/changed-features/vararg-patterns.html) now use the form `: _*` instead of `@ _*`, mirroring vararg expressions,
4750
- [Creator applications](https://dotty.epfl.ch/docs/reference/other-new-features/creator-applications.html) allow to use simple function call syntax
4851
instead of `new` expressions. `new` expressions stay around as a fallback for

0 commit comments

Comments
 (0)