Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Implemented proposals for Swift 3. Parent comment
C:
int foo = bar ? 2 : 4;
foo := map[bool]int{true:2, false:4}[bar]
There are no comments on this comment yet.
C:
Go: Python had a similar trick before 2.5 added ternary conditionals.