|
|
|
|
|
by luriel
5014 days ago
|
|
Should all languages also allow users to define flow control structures? Yes, some languages do this, but there is (as almost always) a trade of between simplicity and flexibility. I think Go strikes a very nice spot there. In go the built in datastructures are very carefully selected, and are extremely useful, while when you need to build your own datastructures is both simple and powerful (you have direct control over memory layout), you just can't build magically generic datastructures, but that always comes at a cost, and Go's interfaces also provides ways to write generic code that are quite powerful. |
|