top | item 43942085

(no title)

rwbt | 9 months ago

Can't comment on RTTI, but lack of conditional imports are indeed an annoyance but I'm willing to put up with it because of all the other niceties in the language.

discuss

order

drannex|9 months 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

flysand7|9 months ago

I remember times before Odin banned conditional imports. Those were different times, I miss them