Re:How I Came to Write D (2014)
by VHRanger on Sunday June 03, 2018 @01:27PM
(#17220591)
You can link to c++ code in D (you do need to declare function signatures on the D side, etc.) but overall c++ compatibility is good, so it's less of a problem than you'd expect
[ Parent
| on HN ]
Yeah but then I need a compelling reason to glue those things together in a new language?
Re:How I Came to Write D (2014)
by johannes1234321 on Sunday June 03, 2018 @03:47PM
(#17221370)
The reason is that you are more comfortable or efficient in the new language, but want to access legacy.
Having to recreate everything for scratch is a massive effort, however gradually refactoring an application and having access to huge amounts of third-party libs is an enabler. (while all those libs will use non-idiomatic patterns, so it has to be contained)
Re:How I Came to Write D (2014)
by WalterBright on Sunday June 03, 2018 @04:11PM
(#17221517)
If you want checkable memory safety, for example.