Opened 3 years ago
Last modified 2 years ago
#6285 new enhancement
Use 'proper' classes in the AI.
Reported by: | Freagarach | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | AI | Keywords: | design |
Cc: | Patch: |
Description
Currently the common-API of the AI provides some custom implementaion for classes. Since 2015 one can just use the SpiderMonkey provided class syntax. (Now, SM90, even with private properties: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes.)
We might consider using that instead. Some drawbacks:
- JS Classes are ugly (language not made for it).
- It may have performance issues, especially valid for e.g. plans, which are frequently made and deleted.
Note:
See TracTickets
for help on using tickets.