Hacker News new | ask | show | jobs
by drannex 403 days 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