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
There is a long list of requested features that may or may not ever be implemented. In the meanwhile developers need a way to go without them. There is quite a number of witty workarounds to missing features have been posted in separate issues. These workarounds get lost among other issues and sometimes closed which makes them hard to find. The developer's community might benefit from making a list of them and publish it at a well seen sight. A format of such list might be as follows:
I would rather have a section about nominal vs. structural type systems in the handbook, along with recommendations for emulating nominal types as suggested in #8510, #202 and #4895.
I agree with @mhegazy, I'm not so sure I want to endorse "hacks and workarounds". Promoting certain patterns to achieve things is a sure-fire way to paint us into a corner when we assume no real world code would be impacted by certain changes.
I'm reminded of the T|void "workaround" people were using to emulate non-nullable types and how badly that code works with real nullable types. We should be careful here and only list things that we consider to be OK code to begin with (i.e. things we consider to be plausibly correct uses of the type system).
Uh oh!
There was an error while loading. Please reload this page.
There is a long list of requested features that may or may not ever be implemented. In the meanwhile developers need a way to go without them. There is quite a number of witty workarounds to missing features have been posted in separate issues. These workarounds get lost among other issues and sometimes closed which makes them hard to find. The developer's community might benefit from making a list of them and publish it at a well seen sight. A format of such list might be as follows:
Nominal types #202 (in investigation)
The text was updated successfully, but these errors were encountered: