Skip to content

Slides For Session 7 - #40

Merged
JamieB-gu merged 3 commits into
mainfrom
session-7
Dec 13, 2023
Merged

Slides For Session 7#40
JamieB-gu merged 3 commits into
mainfrom
session-7

Conversation

@JamieB-gu

Copy link
Copy Markdown
Contributor

Added some slides for session 7.

@JamieB-gu
JamieB-gu requested a review from a team as a code owner December 8, 2023 19:28

@mxdvl mxdvl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

We should probably mention in the session that the moment you create a private member in a class, you effectively achieve Nominal typing in TypeScript! It’s then possible to make it behave like Scala’s trait with abstract classes.

Comment thread 7-types/slides.md
Comment thread 7-types/slides.md Outdated
@JamieB-gu

Copy link
Copy Markdown
Contributor Author

We should probably mention in the session that the moment you create a private member in a class, you effectively achieve Nominal typing in TypeScript! It’s then possible to make it behave like Scala’s trait with abstract classes.

Created #41 to track this.

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.

2 participants