logoalt Hacker News

aw1621107 • today at 4:22 PM • 1 reply • view on HN

That feels a bit like begging the question? Library types only need constructors to replicate built-in types if built-in types use constructors themselves. But do built-in types need constructors? What is lost by just using regular functions?

Also I was under impression that Rust at least has a similar goal?


Replies

pjmlp • today at 4:26 PM

Initialisation syntax, and temporary values for implicit conversions, is what is lost.

➕ show 1 reply