|
@@ -673,7 +673,8 @@ Advantages:
|
|
|
- Simplifies IDEs and refactoring tools.
|
|
- Simplifies IDEs and refactoring tools.
|
|
|
- Otherwise, these systems will need to understand the potential for
|
|
- Otherwise, these systems will need to understand the potential for
|
|
|
separation of interface from implementation between multiple files.
|
|
separation of interface from implementation between multiple files.
|
|
|
- - For example, see [potential refactorings](#potential-refactorings).
|
|
|
|
|
|
|
+ - For example, see
|
|
|
|
|
+ [potential refactorings](/docs/design/code_and_name_organization/README.md#potential-refactorings).
|
|
|
|
|
|
|
|
Disadvantages:
|
|
Disadvantages:
|
|
|
|
|
|
|
@@ -885,7 +886,7 @@ Disadvantages:
|
|
|
|
|
|
|
|
We are declining this approach because we desire package separation, and because
|
|
We are declining this approach because we desire package separation, and because
|
|
|
of concerns that this will lead to an overall increase in verbosity due to the
|
|
of concerns that this will lead to an overall increase in verbosity due to the
|
|
|
-[preference for few child namespaces](#preference-for-few-child-namespaces),
|
|
|
|
|
|
|
+[preference for few child namespaces](/docs/design/code_and_name_organization/README.md#preference-for-few-child-namespaces),
|
|
|
whereas this alternative benefits when `namespace` is specified more often.
|
|
whereas this alternative benefits when `namespace` is specified more often.
|
|
|
|
|
|
|
|
#### Different file type labels
|
|
#### Different file type labels
|
|
@@ -936,8 +937,9 @@ Advantages:
|
|
|
|
|
|
|
|
- Allows straightforward reuse of `alias` for language consistency.
|
|
- Allows straightforward reuse of `alias` for language consistency.
|
|
|
- Easier to add more optional arguments, which we expect to need for
|
|
- Easier to add more optional arguments, which we expect to need for
|
|
|
- [interoperability](#imports-from-other-languages) and
|
|
|
|
|
- [URLs](#imports-from-urls).
|
|
|
|
|
|
|
+ [interoperability](/docs/design/code_and_name_organization/README.md#imports-from-other-languages)
|
|
|
|
|
+ and
|
|
|
|
|
+ [URLs](/docs/design/code_and_name_organization/README.md#imports-from-urls).
|
|
|
- Avoids defining keywords for optional fields, such as `library`.
|
|
- Avoids defining keywords for optional fields, such as `library`.
|
|
|
- Interoperability and package management may add more fields long-term.
|
|
- Interoperability and package management may add more fields long-term.
|
|
|
|
|
|
|
@@ -1010,7 +1012,7 @@ want file extensions to be meaningful for the syntax split.
|
|
|
|
|
|
|
|
Instead of the file type split, we could drift further and instead have APIs in
|
|
Instead of the file type split, we could drift further and instead have APIs in
|
|
|
any file in a library, using the same kind of
|
|
any file in a library, using the same kind of
|
|
|
-[API markup](#exporting-entities-from-an-api-file).
|
|
|
|
|
|
|
+[API markup](/docs/design/code_and_name_organization/README.md#exporting-entities-from-an-api-file).
|
|
|
|
|
|
|
|
Advantages:
|
|
Advantages:
|
|
|
|
|
|