News for hackers. Stuff that matters.
Re:Learn Go by writing tests – Hello, world (2018) by sxiao on Friday March 12, 2021 @10:15AM (#26436662)
A type system can do way more than the simple things from your first code block. This is misleading in terms of what a powerful type systems can do.

Re your second code block: This can be typed with literal types, no need for tests at compile time.

There are no comments on this comment yet.