* Written 100% in Go.
Is Go so great that it becomes a feature of the final product?
51 karma · joined July 30, 2013
* Written 100% in Go.
Is Go so great that it becomes a feature of the final product?
-- I'm not saying this is the case in the blog post. Just some thoughts.
if x.in? my_set # very ugly
I guess we disagree there. This is arguably more readable than most languages with `in?` being still just a method.Maybe programming 101 should start with a higher level language and dive slowly on "how does that work?".
Congratulations to the authors.
"Regular expressions are used in every language, every programmer is familiar with them. Regex can be used to easily express complex strings. What better way to generate a random string than with a tool you can easily use to express the string any way you want?"
An example where this is useful (I guess) is generating data for tests. You can easily define an email regexp to generate random "valid" values for each model.
This sure contributed to reducing the size.
king versus king; king and bishop versus king; king and knight versus king; king and bishop versus king and bishop with the bishops on the same colour. - wikipedia
-- edit Wikipedia: If Square and Rectangle had only getter methods (i.e., they were immutable objects), then no violation of LSP could occur.