Mercerenies / gdlisp

Lisp on the Godot platform
GNU General Public License v3.0
140 stars 1 forks source link

Optimize `get_node` #64

Closed Mercerenies closed 2 years ago

Mercerenies commented 2 years ago

self.get_node("x") should optimize to $x if given a literal string argument.

Note that the GDLisp-side $x syntax already compiles to self.get_node("x"), so any optimizations which apply to get_node will apply to our special syntax too.

Mercerenies commented 2 years ago

Closed as of cbe4e98 (hey, it's the 1000th commit! :D)