RhubarbVR / RhubarbVR_Old

GNU General Public License v3.0
13 stars 5 forks source link

ImGui null string #13

Closed Faolan-Rad closed 3 years ago

Faolan-Rad commented 3 years ago

preventing null strings getting called inside imgui and added anonymous user for testing

Earthmark commented 3 years ago

So it's known in the future, the ?? Operator can simplify many of these checks (and is sometimes faster as it user the same value instead of possibly re-executing property checks)

Also while a value type == null compiles, it's always false. I would personally suggest == default, or finding a better way to detect a default value (such as marking the value type as nullable via ?)

Faolan-Rad commented 3 years ago

@Earthmark thank you for the enlightenment