-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
platform conditionals #286
Comments
We can't use conditional reading because conditional reading will only pick one feature (out of web and native) while we must compile both to a single codebase. Then it's going to be a special form. (dart/sniff
dart:io (some native code)
dart:html (some web code)) could we lift these expressions to distinct files and emit conditional imports automatically? We should also modify |
See #128 |
Let's ponder about
My original idea was to have it replaced by some function call and the function being defined in a conditionally imported lib. My new idea is to have a new special in "dart sexp" (our representation of the subset of dart code we produce) too. Then we would just walk the top-level code in search of a |
Dart has conditional importing to deal with web vs native.
Clojure has conditional readers.
How do we expose Dart affordances and can we do it with conditional reading?
The text was updated successfully, but these errors were encountered: