Closed Martin-H2 closed 5 years ago
ah, i forgot to post the problems i see:
This is more of a language feature, rather than API feature.
Seen as AngelScript lacks foreach
as well as the notion of iterables and enumerables, I don't expect the SC team to add this as part of the SC API. Even if they did, they'd have to provide documentation that points out the difference between SC AngelScript and the original AngelScript.
Yes that may be right.
Lets see what the JavaScript (ES6? ES7?) introduction brings us ? I always was an JS opponent, but now i'd really REALLY prefer it over AngelScript. AS is very limited and inconvenient. The biggest disappointment until now, was the lack of lambda-function support. (lambda-functions, which actually can see objects from the same scope)
AFAIK JS would only be introduced when they implemented the HTML5 engine for displaying HUD/GUI on screen and not to replace server-side/client-side scripts for what AS is used for now.
I agree that AngelScript is very limited and would have loved something else in place which had better documentation and acknowledgement from a wider community, but I don't believe that is going to change anytime soon.
The way it works now closely matches HL SDK. The existing AS API was designed and implemented with that idea in mind... to make life easier to people familiar with HL code.
This will likely stay as it is at least until we rework/replace the API somewhere in the future.
what we got:
suggestion:
and maybe:
** Server.GetPlayers() being an immutable list, which is never generated or copied, when this call occurs