I was considering using the FieldPairs() iterator, one one them, for the first time.
https://nim-lang.github.io/Nim/iterators.html#fieldPairs.i%2CS%2CT
First question is: For the first overloaded iterator on that page my Firefox browser shows a frame built of red dots around it. Has this a special meaning?
Next question: For the fields() iterator there is this example:
var t1 = (1, "foo")
var t2 = default(typeof(t1))
for v1, v2 in fields(t1, t2): v2 = v1
doAssert t1 == t2
But is that not already covered by
var t1 = (1, "foo")
var t2: typeof(t1)
t1 = t2
doAssert t1 == t2
Do I miss something, or should that example only show how we can do the same in a more complicated way. If it is really the later, then it is a bad example for newcomers.
And finally a unrelated question: I once saw in my bookmarked IRC logs a noAlias pragma advertised, but can not find it in the compiler manual:
For the first overloaded iterator on that page my Firefox browser shows a frame built of red dots around it. Has this a special meaning?
It means: the URL you're on points exactly to the thing inside of that frame.
Try clicking on some other links to see it in action.