News for hackers. Stuff that matters.
Re:Go by Example by lmm on Friday March 04, 2016 @12:18PM (#11225194)
Giving your team more powerful tools should always be a positive. If you don't trust them not to do harmful things with them then you have bigger problems.
Re:Go by Example by tptacek on Friday March 04, 2016 @12:22PM (#11225223)
It doesn't feel like that's a strategy that worked especially well for Scala or C++. Go isn't the only language that removes powerful tools: all the strict functional languages do too!
Re:Go by Example by pcwalton on Friday March 04, 2016 @12:25PM (#11225246)
The issues that Scala and C++ have are far beyond just "having generics". Classical (ML-style) generics are an incredibly simple feature, much more so than, say, built-in channels.
Re:Go by Example by tptacek on Friday March 04, 2016 @12:29PM (#11225290)
I agree and I like generics, but I think it's hard to argue that generics have never made a complicated project more complicated.
Re:Go by Example by pcwalton on Friday March 04, 2016 @12:34PM (#11225338)
I'd say typeclasses, templates, and variance have, sure. Those are separate features from generics in my mind. (But you could reasonably lump them all together under the heading of "generics" and I won't argue too much.) :)
Re:Go by Example by lmm on Friday March 04, 2016 @12:32PM (#11225331)
It's worked exceedingly well for Scala from where I'm standing. There is no other language I'd rather be using.
Re:Go by Example by tptacek on Friday March 04, 2016 @12:38PM (#11225390)
If you read my comment carefully, you'll see that I was not in fact saying that people were wrong to like Scala. I like C, but I don't get irritated when people point out its innumerable flaws.
Re:Go by Example by lmm on Friday March 04, 2016 @12:46PM (#11225441)
If you read my comment carefully, you'll see that I was not in fact saying that you were saying that people were wrong to like Scala. I think it's the best language available today and I think that's as a direct result of it being willing to put powerful tools in the hands of its users; therefore "It doesn't feel like that's a strategy that worked especially well for Scala" is, in my view, simply wrong.
Re:Go by Example by tptacek on Friday March 04, 2016 @12:59PM (#11225553)
I don't think I'm the first person to suggest that Scala introduced a fair bit of complexity with all the features it embraced, but, fair enough.