Update JS to newest standard#307
Draft
Ashvin-Ranjan wants to merge 26 commits into
Draft
Conversation
Contributor
Author
|
I have actually had a dilemma over whether the function type syntax needs to be changed. For some background, when we originally decided to change the function type syntax @SheepTester was opposed to it, as the function syntax represents how functions actually are. In the python version this was harder to notice, but in the compiled JS code it is easy to see how something like: sum(1, 2)is actually compiled to [1]: sum(1)(2)So it seems better to have the function type be Any thoughts on the matter would be appreciated. [1]: Note that this is not the exact compiled code but just a simplified representation of how it goes down |
This file contains hidden or 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
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.
Updating the JS branch to the newest standard, it will be labeled as
v0.1.0after this!Things to add:
>>and<<>>>and<<<perhaps?in|to be used for defaulting~to indicate if amaybeis null..spread operatorwhilecontinuebreakforloopelse ifFileIOwriteBytesappendBytesreadBytesgetFilesSystemIOsendSTDOUTrequestrequest.requestcreateServertimesgetTimewebsocketcreateServermutexnewtryAccessaccessreadwritetoFloatprintWithEndsubsectionparallelintoModulegetUnitTestResults,varsyntaxvarsyntax