You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a particular reason of having type helpers in nested namespace e.g. Effect.Effect.Success, Stream.Stream.Success? It feels cumbersome to use it like this
What is the feature you are proposing to solve the problem?
I checked some modules and didn't found conflicts. What do you think about moving these type accessors to the top level e.g. Effect.Success, Stream.Success, mark Effect.Effect.Success as deprecated and remove in the next major?
Is there a particular reason of having type helpers in nested namespace e.g. Effect.Effect.Success, Stream.Stream.Success? It feels cumbersome to use it like this
What is the feature you are proposing to solve the problem?
I checked some modules and didn't found conflicts. What do you think about moving these type accessors to the top level e.g. Effect.Success, Stream.Success, mark Effect.Effect.Success as deprecated and remove in the next major?
runtime namespaces are considered a mistake not type level namespaces, also the "mistake" refers to a non standard JS runtime feature that crosses multiple files, it has nothing to do with nested types.
What is the problem this feature would solve?
Is there a particular reason of having type helpers in nested namespace e.g.
Effect.Effect.Success
,Stream.Stream.Success
? It feels cumbersome to use it like thisWhat is the feature you are proposing to solve the problem?
I checked some modules and didn't found conflicts. What do you think about moving these type accessors to the top level e.g.
Effect.Success
,Stream.Success
, markEffect.Effect.Success
as deprecated and remove in the next major?Just BTW – TypeScript team consider namespaces as mistake
https://www.youtube.com/watch?v=tXK50czRbdA&t=990s (interview of Anders Hejlsberg – the creator of TypeScript)
The text was updated successfully, but these errors were encountered: