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
Additionally, allow function definitions in objects. (So events are really just the same as void-returning functions, possibly taking arguments in the case of create - but I think it's good to have distinction visible in the code)
Game object type declaration: object Player { ... } instead of player { ... }
Creation and destruction: e.g. p = create Player(...); and destroy p instead of create(Player) and destroy(p).
All three changes make things just slightly easier to parse. Do any of them look worse in your opinions?
The text was updated successfully, but these errors were encountered:
What do you guys think about the following changes?
event create(...) { ... }
instead ofCREATE(...) { ... }
create
- but I think it's good to have distinction visible in the code)object Player { ... }
instead ofplayer { ... }
p = create Player(...);
anddestroy p
instead ofcreate(Player)
anddestroy(p)
.All three changes make things just slightly easier to parse. Do any of them look worse in your opinions?
The text was updated successfully, but these errors were encountered: