Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Update mentions of internal/external modules to use namespaces/modules #51

Merged
merged 9 commits into from
Jun 2, 2015

Conversation

DanielRosenwasser
Copy link
Member

Addresses #36. Not sure if this is what you had in mind @danquirk but I'd definitely appreciate your feedback.

As usual, rich diff is best diff.

@@ -2,7 +2,7 @@

Functions are the fundamental building block of any applications in JavaScript.
They're how you build up layers of abstraction, mimicking classes, information hiding, and modules.
In TypeScript, while there are classes and modules, function still play the key role in describing how to `do` things.
In TypeScript, while there are classes, namespaces, and modules, function still play the key role in describing how to *do* things.
Copy link
Member Author

Choose a reason for hiding this comment

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

This emphasis seems silly, but I'm willing to keep it.

@@ -393,18 +409,18 @@ In some cases, you may want to only load a module under some conditions.
In TypeScript, we can use the pattern shown below to implement this and other advanced loading scenarios to directly invoke the module loaders without losing type safety.

The compiler detects whether each module is used in the emitted JavaScript.
For modules that are only used as part of the type system, no require calls are emitted.
For modules that are only used as part of the type system, no `require` calls are emitted.
Copy link
Member

Choose a reason for hiding this comment

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

This wording is a little odd ('part of the type system'). I would say like "If a module identifier is only ever used in type annotations and never as an expression then no 'require' call is emitted for that module." Alternatively you could use our usual 'type position' terminology which is referenced a few lines down.

@danquirk
Copy link
Member

danquirk commented Jun 2, 2015

👍

DanielRosenwasser added a commit that referenced this pull request Jun 2, 2015
Update mentions of internal/external modules to use namespaces/modules
@DanielRosenwasser DanielRosenwasser merged commit 5315609 into master Jun 2, 2015
@DanielRosenwasser DanielRosenwasser deleted the namespaces branch June 2, 2015 22:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants