3 ms·
You technically _can_ do conditional imports by mis(?)using the #load('') usage, its not perfect and might not work for all cases, but it can be done since #loa
by drannex 1y ago
You technically _can_ do conditional imports by mis(?)using the #load('') usage, its not perfect and might not work for all cases, but it can be done since #load() loads a file/entity in at compile time. It's a 'hack' but it can be used that way.
Edit: This thread is useful: https://forum.odin-lang.org/t/conditional-imports/497/2 https://forum.odin-lang.org/t/conditional-imports/497/2