3 ms·
>Conditional Compilation: This feature sucks. It really does. The problem is, I don't see what else they could have done. So my response here is, Do you have an
by imtringued 11y ago
>Conditional Compilation: This feature sucks. It really does. The problem is, I don't see what else they could have done. So my response here is, Do you have any better way to do cross platform compatibility? Because I would honestly love to see it. I'm serious.
A simple answer would be conditional compilation for entire functions not individual lines of code.
https://github.com/ceylon/ceylon/blob/444f6a1c33e5689405d34a75eea87f518fb08876/compiler-java/test/src/com/redhat/ceylon/compiler/java/test/nativecode/simple/NativeMethodShared.ceylon https://github.com/ceylon/ceylon/blob/444f6a1c33e5689405d34a...
- qwertyuiop924 11y agoThat actually sounds really neat. Kind of like compile time polymorphism, but based on platform. I like it. Although there are some things it doesn't solve, it seems to work for the most part.