started: 2025.05.25 finished: 2025.05.25 description: What is better return or pass in Godot? --- I do like `returns` in empty functions and I do not like `pass` becuase its not a `return`. And since everywhere I look people use `pass` in the empty functions I decided to show them that `return` is million times better because it looks ands sounds way better than `pass`. Code used: ```gdscript @tool extends EditorScript var time_p: int = 0 var time_r: int = 0 func _run() -> void: time_p = Time.get_ticks_msec() for i in 1e7: # 10.000.000 times return_func() time_p = Time.get_ticks_msec() - time_p print("pass loop: %d" % time_p) time_r = Time.get_ticks_msec() for i in 1e7: pass_func() time_r = Time.get_ticks_msec() - time_r print("return loop: %d" % time_r) print("Msecs difference: %d" % abs(time_p - time_r)) func return_func() -> void: return func pass_func() -> void: pass ``` Output: ``` return loop: 1046 msecs pass loop: 979 msecs Difference: 67 msecs ``` `return` is *** not faster*** than `pass`... Damn...