Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
drannex
8 months ago
|
parent
|
context
|
favorite
| on:
Odin, a pragmatic C alternative with a Go flavour
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:
Edit: This thread is useful: https://forum.odin-lang.org/t/conditional-imports/497/2