-
Notifications
You must be signed in to change notification settings - Fork 113
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
Typemaker 1.1 - fixes and improvements #2072
Open
out-of-phaze
wants to merge
26
commits into
OpenDreamProject:master
Choose a base branch
from
out-of-phaze:experiment/typemaker-1.1
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
Typemaker 1.1 - fixes and improvements #2072
out-of-phaze
wants to merge
26
commits into
OpenDreamProject:master
from
out-of-phaze:experiment/typemaker-1.1
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
out-of-phaze
force-pushed
the
experiment/typemaker-1.1
branch
from
October 31, 2024 17:19
dfb49e9
to
0157609
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InspectCode found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
out-of-phaze
force-pushed
the
experiment/typemaker-1.1
branch
3 times, most recently
from
October 31, 2024 19:53
e04e0ca
to
f4ad807
Compare
out-of-phaze
force-pushed
the
experiment/typemaker-1.1
branch
from
November 8, 2024 15:55
ce9da4c
to
4c2434e
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
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.
A bunch of fixes/improvements to typemaker inference, plus:
DMValueType.Instance
is now the default when doingas /some/typepath
.as path(/some/typepath)
can be used to specifically denote 'a typepath of type/some/typepath
'.as /list(some union astypes here)
for normal lists,as /list(some union astypes here, some others here)
for associative lists. Empty lists currently always match all typed lists because type info is not tracked at runtime. Similarly, a list with only keys and no associated values can match a typed associative list (this was necessary to fix some stuff on TG, and besides, it's hard to differentiate betweenlist("foo")
andlist("foo" = null)
.as params[1]
astypes syntax has been added. You can also even doas params[1] as instance
to denote that, ifparams[1]
is a path, this value is an instance with the same type. (This is useful for singleton getters.)I beg you, please help me find some other way to do the params stuff other than just threading
procParameters
through the entire parser. It's SO BAD. I hate it