News for hackers. Stuff that matters.
Re:Zig: a system language which prioritizes optimality, safe... by kennell on Monday August 29, 2016 @03:48AM (#12380606)
This is interesting from a technical point of view, but looking at the Hello World example [0] really makes me wonder... who wants to write code like this? I have been a touch typer for half my life now, but things like

> %% unreachable{};

> main(args: [][]u8) -> %void

really make my fingers and eyes itch.

[0] https://github.com/jmi2k/zig-playground/blob/master/src/hell...

Re:Zig: a system language which prioritizes optimality, safe... by abricot on Monday August 29, 2016 @05:13AM (#12380829)
Try that on a nordic keyboard:

  % - SHIFT + 5
  { - ALT + 7
  } - ALT + 0
  ; - SHIFT + ,
  ( - SHIFT + 8
  : - SHIFT + .
  [ - ALT + 8
  ] - ALT + 9
  ) - SHIFT + 9
  > - SHIFT + <
  % - SHIFT + 5
Just for the bit you quoted.
Re:Zig: a system language which prioritizes optimality, safe... by codygman on Tuesday August 30, 2016 @03:09AM (#12388084)
Re:Zig: a system language which prioritizes optimality, safe... by dilap on Monday August 29, 2016 @09:18PM (#12386715)
yeah i agree the specific choice of % seems unintuitive, ugly, not great to type, but i love the functionality...