Why is D unpopular?

Paul Backus snarwin at gmail.com
Fri Nov 5 16:16:14 UTC 2021


On Friday, 5 November 2021 at 15:54:53 UTC, Antonio wrote:
> **My point:**
>
> D introduces a different philosophy:  you must accept 
> **conventions**,  don't expect to find Interfaces... That is 
> not what a regular Scala/Typescript/Java/C#/... developer is 
> used to seeing.   It is a paradigm itself:  your project will 
> define more and more conventions (without the help of languaje 
> native contracts) and compiler will check them.
>
> Languages like Scala 3 or Typescript introduces new strong type 
> flexibility with "union types" (i.e.:    sayHello( who: "peter" 
> | "andrew" ): string | string[] ) or exploid the pattern 
> matching or .... but without losing the type based contracts
>
> May be D is unpopular because it can't be popular.

This kind of "convention-based" programming is actually very 
common in dynamic languages like Python and Ruby, where it goes 
by the name of ["duck typing"][1].

[1]: https://en.wikipedia.org/wiki/Duck_typing


More information about the Digitalmars-d mailing list