Open flaxed opened 5 years ago
IMO we should stick to C-like syntax, which would make the language immediately recognizable by most programmers I believe?
This guideline is more to avoid too many C-isms rather than C altogether.
It came up during discussion of supporting both pointers and references, but that only maps 100% to C++. Other languages, like JS, don't have pointers or references in the types, C# references or values is derived from the type itself, etc. So we suggested to take a step back, and avoid focusing too much on mapping to C, and also strive to support other languages.
C-like doesn't mean locked to C/C++. Language-specific features could be solved with other mechanisms like annotations:
struct data {
[[nullable]] complex_type field;
};
C and C++ rule the land of game development, but they're not the only languages roaming around. And as such, we should avoid that any C\C++ smells seep into the ddl syntax.
At the same time we try to not over-focus on C\C++ we should also make an effort to be inclusive to other languages.
This thread will serve more as a pool: