This Week in D November 6, 2016

Welcome to This Week in D! Each week, we'll summarize what's been going on in the D community and write brief advice columns to help you get the most out of the D Programming Language.

The D Programming Language is a general purpose programming language that offers modern convenience, modeling power, and native efficiency with a familiar C-style syntax.

This Week in D has an RSS feed.

This Week in D is edited by Adam D. Ruppe. Contact me with any questions, comments, or contributions.


In the community

Community announcements

See more at the announce forum.

Tip of the Week

D allows trailing commas in most places where it needs a comma separated list, including arrays and function definitions:

	void test(int a, int b,) {} // legal
	int a = [1, 2, 3,]; // legal
	enum Cool {
		c, // legal

I really like this for copy/pasting lines, rearranging elements, or generating code strings: you can just always put the comma at en end of every line and then move them around as you please.

In my opinion, it is little niceties like this that reduce mental friction to make writing D a bit nicer.

Learn more about D

To learn more about D and what's happening in D: