Menu

#106 Applying annotations to nests of for() loops

open
Maxim
5
2012-11-25
2012-11-25
No

Currently, annotations can only be applied to do/nfor() loops. Make them applicable to nests of ordinary loops as well, e.g.:

nuwork(1, 128) dmine(16, 1)
for(mutable i = 0; i < n; i++)
for(mutable j = 0; j < n; j++)
a[i, j] = b[i, j];

This will make using annotations more intuitive for new users, and will also make the learning curve less steep.

Discussion

MongoDB Logo MongoDB