english icon indicating copy to clipboard operation
english copied to clipboard

new gem: alias, tuples & static foreach

Open wilzbach opened this issue 9 years ago • 1 comments

From @wilzbach on June 26, 2016 0:6

I feel that neither alias, static foreach and tuples are well represented in the tour. They are already needed in other sections (e.g. #264), so we should probably try to enhance basics/alias-strings and maybe even create a new gem. The meta programming gem also doesn't cover any of these topics.

btw if static foreach is unfamilar:

import std.meta : AliasSeq;
foreach (c, AliasSeq!(int, float))
   ...

Copied from original issue: stonemaster/dlang-tour#375

wilzbach avatar Aug 21 '16 14:08 wilzbach

Missing alias explanation has also been reported in #356

wilzbach avatar Aug 21 '16 14:08 wilzbach