Zolang v0.1.18 Release Notes
Release Date: 2018-12-31 // almost 6 years ago-
Minor compilation speed improvements
Previous changes from v0.1.17
-
0.1.17
๐ Users can now use the metaprogramming features
raw
andonly
raw
raw {'Any text here'}
This will tell the compiler to skip the code generation process for "Any text here" and forward it as is to the compilers output
only
only "<flag1>", "<flag2>",... { <code> }
๐ Using
only
we can tell the compiler to ignore code for buildSettings not included in a comma separated list of flagsonly "python2.7", "swift" { print("text") }
Putting it all Together
๐ฒ Using these two features (
raw
&only
) we could create a facade for logging to the console:describe Sys { static log return from (txt as text) { only "python2.7", "swift" { raw {'print(txt)'} } only "kotlin" { raw {'println(txt)'} } } } Sys.log("Hello World!")