Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Reuse type classes with the same definition #11

Open
amir-arad opened this issue Jul 21, 2016 · 0 comments
Open

Reuse type classes with the same definition #11

amir-arad opened this issue Jul 21, 2016 · 0 comments

Comments

@amir-arad
Copy link
Contributor

This optimization seems necessary for generic types, as a runtime reference creates a new type instance every time.

Most glaring example:

const list = Mutable.List.of(core3.String)();

So every time this code is called (imagine a loop... 😢 ), you'll create a new type definition.

perhaps only for derived types (of, nullable, withDefault etc.)

@amir-arad amir-arad modified the milestone: initial feature and API complete Jul 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant