TheToolsmiths / ddl

Data Definition Language for Game Development Tools
MIT License
4 stars 3 forks source link

Be Inclusive - Languages to be supported #8

Open flaxed opened 5 years ago

flaxed commented 5 years ago

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:

  1. Which languages and frameworks is everyone using where they see the ddl become useful?
  2. What additional considerations do you suggest based in your particular development scenario
leiradel commented 5 years ago

IMO we should stick to C-like syntax, which would make the language immediately recognizable by most programmers I believe?

flaxed commented 5 years ago

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.

leiradel commented 5 years ago

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;
};