8 ms·
> but in this case it’s just your (admitted!) unfamiliarity That's exactly the problem. Golang has syntax different from other imperative languages not because
by anal_reactor 1y ago
> but in this case it’s just your (admitted!) unfamiliarity
That's exactly the problem. Golang has syntax different from other imperative languages not because its syntax brings something new to the table, but just for the sake of being different. In other words, it's an entry barrier that provides nothing in return.
To illustrate my point, imagine someone coming up with a new measurement unit "my_unit" equal to 0,73926745 cm. The first question is "why" because it solves zero problems for which the metric system would be impractical, while adding new cognitive load for people trying to use it. And then there's the counterargument "you're just not familiar with it!" which is a fair point because objectively, you can't say that either centimeter or "my_unit" is better. It's just that it's unnecessary cost of switching from already applied standard that works equally well.
- dwb 1y ago> Golang has syntax different from other imperative languages No it doesn’t, it’s very similar to C.