Q – unpredictable global vars

The behaviour of the Q language can often be unpredictable and unintuitive, leading to numerous ways to shoot yourself in the foot. I think every developer has a piggy bank with such cases. Here’s one example: q) f: { a: 1; b,: 2 } q) f[] q) a 'a [0] a ^ q) b ,2 q) get `. f| {a: 1; b,: 2} b| ,2 12345678910111213 q) f:...

Read