-
Notifications
You must be signed in to change notification settings - Fork 46
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
Issue #4 - sealed classes #5
Open
bernerbrau
wants to merge
3
commits into
ntrrgc:master
Choose a base branch
from
bernerbrau:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is too complex. |
It's hard to follow what has changed and what hasn't even using |
Yeah, I moved too much around. Let me revert and try again.
…On Thu, Mar 29, 2018, 5:12 PM Alicia Boya García ***@***.***> wrote:
It's hard to follow what has changed and what hasn't even using git diff
-w.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC4SgGBmRJ8f8fVyV79ek52GIqE56JLlks5tjWpxgaJpZM4S9y3X>
.
|
My worry is that the patch to implement this feature is so big and far reaching that it becomes not worth it for maintainability sake. |
This was my attempt. It does not handle non-nested sealed class children, but it's much simpler. a12e9f2 |
Right, agreed. In addition to your initial concerns, I realized that
typescript's type erasure makes it difficult at runtime to determine which
member of the union is being used; hence why I found it necessary to
include code generation that does runtime type validation. To do this, I
had to make the class visitor repeatable, and that was enough to confuse
git diff beyond hopefulness.
So it may simply be that sealed classes are too complicated to be worth
including. :(
…On Fri, Mar 30, 2018, 8:43 AM Alicia Boya García ***@***.***> wrote:
This was my attempt. It does not handle non-nested sealed class children,
but it's much simpler. a12e9f2
<a12e9f2>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC4SgF56ucpxHY3aaH3MDISkBHEP0AFMks5tjkScgaJpZM4S9y3X>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.