On Tuesday, 29 September 2015 at 12:26:58 UTC, Robert M. Münch wrote:
Not that I'm to deep into the code nor D but would it be possible to write it somehow like this:

Mail email = new Mail;

email.headers = [
        "Date" Clock...,
        "Sender" ...

This would be a much more descriptive approach, which I think makes a lot of sense for such things. And it follows the "dont repeat yourself" pattern.

The Mail class is from vibe.d

I suppose the headers members could accept `string[string]` assignment.

Reply via email to