We all like to demo how awesome Julia is, which occasionally results in interesting, but possibly non-idiomatic, non-extensible, or fragile code (relying on internals, etc) that stretches the boundaries of the language. I will not provide examples here (first, because I don’t want to single out anyone, second, because I actually like these examples a lot), but they include
- squeezing the last nanosecond out of an optimization problem using internals and unsafe ops, or very complex code that works around a compiler quirk,
- defining a mini-DSL using macros,
- extending syntax through creative use of
There are great fun to read and comprehend (I have learned a lot from them), but I wonder if it would make sense to exercise some judgement when the topic is in the First steps category, either explicitly or implicitly (which usually is apparent from the question).
As Julia is growing, we can expect many more newcomers who, potentially because experience with some other language, sometimes ask for things which can be done, but perhaps should not be done, or not until one understands a lot more about using Julia. They may not be able to tell that the solution is not something one would do on a regular basis, because of safety or maintenance concerns, or think that Julia is about doing weird and complex stuff to gain 10% runtime performance, or develop parallel syntax that mimics some other language instead of learning how it is done in Julia.