summaryrefslogtreecommitdiff
path: root/tests/test_physics_2d.h
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2021-07-01 16:03:37 -0300
committerreduz <reduzio@gmail.com>2021-07-01 16:03:37 -0300
commit379b90fd335ad5b17ed35908d4f68568e49d43d4 (patch)
tree0d28919235ae6b34ae6cb7101fe4244c5dd595cb /tests/test_physics_2d.h
parent382ddd497a732812356fccbe9642d86848a4da9d (diff)
Force String as Dictionary key instead of StringName
* Lua table syntax uses named indexing: `{ mykey = myvalue }` * Python style syntax uses string indexing: `{ "mykey" : myvalue }` * Both are incompatible since a StringName key wont fetch a String key, hence confusing. * This PR proposes always using String for indexing at a very minimal performance cost. Always indexing with StringNames will be faster, but they are considerably more expensive to create.
Diffstat (limited to 'tests/test_physics_2d.h')
0 files changed, 0 insertions, 0 deletions