Skip to content

Link to an associated tutorial entry on singletons #612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2016
Merged

Link to an associated tutorial entry on singletons #612

merged 2 commits into from
Oct 31, 2016

Conversation

cevantes
Copy link
Contributor

No description provided.

@@ -43,7 +43,7 @@ object Classes {
}
```

The program defines an executable application Classes in form of a top-level singleton object with a `main` method. The `main` method creates a new `Point` and stores it in value `pt`. Note that values defined with the `val` construct are different from variables defined with the `var` construct (see class `Point` above) in that they do not allow updates; i.e. the value is constant.
The program defines an executable application Classes in form of a top-level [singleton object](singleton-objects.html) with a `main` method. The `main` method creates a new `Point` and stores it in value `pt`. Note that values defined with the `val` construct are different from variables defined with the `var` construct (see class `Point` above) in that they do not allow updates; i.e. the value is constant.
Copy link
Member

@jarrodu jarrodu Oct 30, 2016

Choose a reason for hiding this comment

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

I prefer links without the extension. It gives a cleaner experience.

[singleton object](singleton-objects)

Copy link
Member

@jarrodu jarrodu Oct 30, 2016

Choose a reason for hiding this comment

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

It seems like the links are not consistent in the tutorial. I guess either is fine. Maybe I will go through and get rid of all the extensions in the future. Cheers. :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One can probably do it in one pass with sed

Copy link
Member

Choose a reason for hiding this comment

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

For sure. It would still need different PR. 👍

just to make it cleaner
@heathermiller
Copy link
Member

LGTM, thanks guys!

@heathermiller heathermiller merged commit cbbd752 into scala:master Oct 31, 2016
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.

3 participants