Hello Godot Community,
I’m new to Godot and GDScript and have some questions about its design principles, especially regarding error handling and performance. Here are a few areas where I’m seeking clarity:
- What kind of compilation and optimization does GDScript undergo?
- At what stage does type safety enforcement occur in GDScript?
- How does GDScript resolve names for functions, classes, and methods? Is it more than runtime string comparisons or dictionary lookups?
- Considering the preference for dictionaries over arrays for certain return types, how does this impact performance?
- How does GDScript manage string efficiency, especially for dictionary keys? Are strings interned or hash values cached?
- With GDScript’s syntax similarity to Python, there’s a potential trap for novices in adapting code without considering the absence of exception handling. What safeguards or practices are in place to help avoid this pitfall?
Appreciate any insights or guidance you can offer!
Thank you.