Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: