News for hackers. Stuff that matters.
Re:Writing a SQL database from scratch in Go by _ph_ on Monday April 13, 2020 @03:53AM (#22853939)
The biggest reason is typo and type checking. Any typo is a compilation error. But the type checking is even more interesting. You basically create a subtype of string which is correspondingly type checked by the compiler. Functions might return a keyword instead of a string.

One funny thing you can do in Go is for example to create a subtype of int and change its String() method to return the hexadecimal representation of that int. Very neat.

There are no comments on this comment yet.