Luukdegram / apple_pie

Basic HTTP server implementation in Zig
MIT License
163 stars 21 forks source link

Updated for loops. #87

Closed jernejp21 closed 1 year ago

jernejp21 commented 1 year ago

Previous syntax for index of for loop elements: for (items) |item, index|

New syntax for index of for loop elements: for (items, 0..) |item, index|

Luukdegram commented 1 year ago

This code is untested. Apple Pie (currently) only supports 10.x due to relying on the async feature. This means it also doesn't support the new for-loop syntax. For these reasons I cannot accept this PR as is until Zig regains the async feature in the master branch. Thank you for taking the time for this PR but for now I'll have to reject this.