News for hackers. Stuff that matters.
Re:Why don't more languages offer flow typing? by jerf on Monday April 04, 2022 @03:56PM (#30911287)
I'm not sure what you mean by "not gaining anything of significance." Go without interfaces (and for simplicity let's ignore 1.18's generics for a moment) would not be a useful language at any significant scale. You'd end up with a lot of "by hand" interfaces of structs full of function pointers (or method closures), only without the compiler support.

Nor am I sure exactly what "confusion" is being increased.

Re:Why don't more languages offer flow typing? by masklinn on Monday April 04, 2022 @04:01PM (#30911352)
> I'm not sure what you mean by "not gaining anything of significance." Go without interfaces (and for simplicity let's ignore 1.18's generics for a moment) would not be a useful language at any significant scale.

Why would go not have interfaces? Where did you make that up from?

Go would have nominative interfaces Like most other languages.