News for hackers. Stuff that matters.
Re:Less is exponentially more by samth on Monday June 25, 2012 @07:03PM (#4159222)
The claim that wanting to be able to abstract over types is the same as thinking that programming is about constructing taxonomies is one of the sillier claims I've seen recently.
Re:Less is exponentially more by Jare on Monday June 25, 2012 @08:36PM (#4159513)
His claim as I understood it is that the fundamental building blocks should not be types (what something is), but functional capabilities (what something can do). Type abstractions are fundamentally hierarchical (from an abstraction to multiple concrete versions), whereas capabilities are fundamentally about composition (I can do A, B and C).
Re:Less is exponentially more by Symmetry on Monday June 25, 2012 @09:39PM (#4159713)
Type abstractions are fundamentally hierarchical

In C++ or Java they certainly are, but Haskell's type classes, for instance, are much more similar to Go's interfaces.

Re:Less is exponentially more by zaphar on Monday June 25, 2012 @11:35PM (#4160153)
I don't think anyone is going to say that Haskell's type classes in any way fit the traditional notion of a type. It's more the exception that proves the rule in this case.
Re:Less is exponentially more by it on Tuesday June 26, 2012 @12:27AM (#4160284)
I know it's a common saying, but I've never understood how exceptions can prove rules.
Re:Less is exponentially more by hardwear on Tuesday June 26, 2012 @02:07AM (#4160541)
It is a very old saying from when "prove" meant what "test" means now. Exception is meant in the sense of exceptional, unusual. "The unusual event tests the heuristic."
Re:Less is exponentially more by monjaro on Tuesday June 26, 2012 @02:40AM (#4160606)
It's actually a really simple thing that most people misunderstand (such as the parent). It means that if you only provide an exception, it implies a rule. For example, if you say:

Parking allowed 3pm-5pm

that implies that parking is not allowed at other times.

Re:Less is exponentially more by guelo on Tuesday June 26, 2012 @01:30AM (#4160457)
It's just something stupid that people say when they've been caught over-generalizing.
Re:Less is exponentially more by sp332 on Tuesday June 26, 2012 @10:13AM (#4161860)
Pointing out how flexible Haskell's type system is just proves how inflexible type systems generally are. It doesn't really demonstrate that most type systems are useful.
Re:Less is exponentially more by twoodfin on Wednesday June 27, 2012 @11:03AM (#4167329)
And that's exactly how C++'s template ("generics") mechanism works, which makes Pike's claim seem uninformed.
Re:Less is exponentially more by batista on Tuesday June 26, 2012 @05:01AM (#4160866)
If that's the case, he's doing it wrong. It's like the pot calling the kettle black.

He essentially argues that types are constraining on other languages based on types, where it is actually in Go that types CONSTRAIN your use of things.

Because obviously different things CAN be held in a container, and a container can hold different things -- but Go doesn't let you do that (except for the officially "blessed" containers).

It is Go that's concerned more about "what something is", in letting you work with it, than, say, Haskell.