Grammar question. TypeSuffix - what is [ AssignExpression .. AssignExpression ] production for?
monkyyy
crazymonkyyy at gmail.com
Wed Sep 4 19:21:21 UTC 2024
On Wednesday, 4 September 2024 at 17:31:53 UTC, Nick Treleaven
wrote:
> On Monday, 2 September 2024 at 16:35:11 UTC, monkyyy wrote:
>> Good docs for what seq does, doesnt exist; period. You have to
>> learn from trail and error.
>
> What's wrong with:
>
>> So maybe
>> https://dlang.org/spec/template.html#variadic-templates ,
>> where more specifically
>> https://dlang.org/spec/template.html#seq-ops mentions slicing
>> operation on these sequences ?
Seq's are builtin data types that need *more* explanations then
aa's and slices, lets assume you realized that the spec is
useless and went to the book for slices you get 3 pages worth of
code examples for whats not that hard to understand. The spec
only offers 3 code examples, none of which covers, oh, lets say
static foreach of seq's, youd need to know to go to spec on
foreach to look for it.
The template book should be "made cannon" and probably get some
major updates(it is after all, 10 years out of date).
More information about the Digitalmars-d
mailing list