Looking for an equivalent to C++ std::getline in D

bachmeier via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 7 06:16:16 PDT 2017


On Sunday, 7 May 2017 at 10:33:25 UTC, k-five wrote:

> Although I found D for being more better, nicer,and fun than 
> C++ is, but there is a few questions on Stack-Over-Flow, videos 
> on Youtube, and  some other forums in my country. So, why D is 
> not popular?

If by popular you mean C++ or Java levels of usage, that's a 
pretty high standard. While D is not among the most used 
languages in large enterprises, it is definitely not an obscure 
language. For example, just a few days ago I was reading about 
the new Scala Native project. Among the motivations for that 
project is

"Scala Native provides an interop layer that makes it easy to 
interact with foreign native code. This includes C and other 
languages that can expose APIs via C ABI (e.g. C++, D, Rust 
etc.)" [0]

You have to be careful about using stackoverflow as a measure of 
language popularity. Most activity takes place on this mailing 
list, which was going long before stackoverflow, and there was 
little motivation to move there (Google searches will bring you 
here).

One of the few quantitative measures (and even that's of limited 
use) is DMD downloads from this site. Most recently they have 
been at about 50,000 per month.[1]

[0] http://www.scala-native.org/en/latest/user/interop.html
[1] http://erdani.com/d/downloads.daily.png


More information about the Digitalmars-d-learn mailing list