-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update JS to newest standard #307
base: main
Are you sure you want to change the base?
Conversation
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 |
Updating the JS branch to the newest standard, it will be labeled as
v0.1.0
after this!Things to add:
>>
and<<
>>>
and<<<
perhaps?in
|
to be used for defaulting~
to indicate if amaybe
is null..
spread operatorwhile
continue
break
for
loopelse if
FileIO
writeBytes
appendBytes
readBytes
getFiles
SystemIO
sendSTDOUT
request
request.request
createServer
times
getTime
websocket
createServer
mutex
new
tryAccess
access
read
write
toFloat
printWithEnd
subsection
parallel
intoModule
getUnitTestResults
,
var
syntaxvar
syntax