digitalmars.D - Automated source code translation
- "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= (13/13) Jan 22 2014 Source code translation can be valuable for many reasons, one
Source code translation can be valuable for many reasons, one reason is when you want a library to be available on a server and multiple clients (javascript, C++, Objective-C etc). Let's assume that you use D in a conservative way, but write idiomatic D. What features in safe-D is either difficult or impossible to translate in another imperative language in an automated fashion, without sacrificing readability? And how do you write code that can be translated (by an algorithm) without sacrificing phobos or readability in the output? What strikes me as the most challenging construct is the macro-like features in the template libraries. Although I suppose an advanced analytical solution could be found. Any thoughts on this?
Jan 22 2014