This now type checks. It's starting to feel real... union IntOrPtr { i: int; p: int*; } var u1 = IntOrPtr{i = 42} var u2 = IntOrPtr{p = cast(int*, 42)} var a: int[256] = {1, 2, ['a'] = 3}
-
-
a := 42 works for local init declarations
-
I like having keywords signposting each declaration at the top level, and the local shorthand is available inside function bodies.
- 5 more replies
New conversation -
-
-
Tim, go full APL / Q: http://code.kx.com/q4m3/1_Q_Shock_and_Awe/#12-variables … q)b:1+a:42 q)b 43
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
For real fun, turn that from integer into float.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.