odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.13k stars 551 forks source link

Semantic ambiguity with #reverse error message #3868

Open ChuuniMage opened 3 days ago

ChuuniMage commented 3 days ago

#reverse is not supported with ranges, prefer an explicit for loop with init, condition, and post arguments.

Is ambiguous whether it means "use a for loop instead of for x in y syntax" or use explicitly reversed for loop logic

Suggested fix: #reverse is not supported with ranges, prefer an explicitly reversed for loop with init, condition, and post arguments.