Go Proverbs - Rob Pike - Gopherfest - November 18, 2015
Video Statistics and Information
Channel: The Go Programming Language
Views: 141,093
Rating: 4.9608717 out of 5
Keywords: Rob Pike, golang
Id: PAAkCSZUG1c
Channel Id: undefined
Length: 22min 28sec (1348 seconds)
Published: Tue Dec 01 2015
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Make the zero value useful.
Someone should tell the AWS folks.
I prefer my version...
If it is unreasonable to expect the higher layer to be able to rectify the problem at run time, be honest and just plain die immediately, rather than your passing your bugs around like a unwanted christmas present.
Consider the millions of lines of C that check the result of malloc().
How many of those lines have been tested?
How many of those lines actually do anything that will actually work?
How many of those programs may survive that particular call.... but then stumble on a few cycles and crash?
From the D perspective, Reflection and Introspection occurs at compile time via Compile Time Function Evaluation (CTFE).
The result is type safe at compile time, and succinct code without reams of boiler plate.
The result is the similarities and differences between specializations of a data structure is explicit and clear.
So this proverb is an, ahh, "reflection" of the limitation of languages like Go, Java and Python rather than a desirable feature of a language.