Re:قلب: a non-ASCII programming language written in Arabic
by jdnenej on Friday October 25, 2019 @04:20AM
(#21352915)
Native English speaker and I also don't really get what "for" was meant to mean. At this point it's probably just something that everyone has memorised and part of history.
[ Parent
| on HN ]
Re:قلب: a non-ASCII programming language written in Arabic
by yodsanklai on Friday October 25, 2019 @04:44AM
(#21353032)
I'm not a native speaker, but "perform this task, for i in {1,2,3}" seems to make sense as a prose. At least it does in French, when translated literally.
Re:قلب: a non-ASCII programming language written in Arabic
by ozzmotik on Friday October 25, 2019 @05:18AM
(#21353203)
personally as a native speaker it has alwaus made sense to me in the sense of saying "for these given constraints, loop while they are maintained" for the arithmetic style for loop, and "for each of these elements" for the more iterator based style.
Re:قلب: a non-ASCII programming language written in Arabic
by jdnenej on Friday October 25, 2019 @05:53AM
(#21353360)
In python it makes sense but when you have `for(let i=0; I<length; I++)` it makes less sense
Re:قلب: a non-ASCII programming language written in Arabic
by wongarsu on Friday October 25, 2019 @07:38AM
(#21353958)
"for all i smaller than length, starting at 0". It doesn't really map perfectly because in math you usually don't care about the order, so a for loop actually contains more information than the statement it's trying to mimic.
Re:قلب: a non-ASCII programming language written in Arabic
by krzrak on Friday October 25, 2019 @04:52AM
(#21353076)
The same in Polish.
Re:قلب: a non-ASCII programming language written in Arabic
by trophycase on Friday October 25, 2019 @03:33PM
(#21358458)
Huh? It's pretty common even in basic college math courses to use language like "for every p in Q". It's not like programming invented this usage.
Re:قلب: a non-ASCII programming language written in Arabic
by Izkata on Friday October 25, 2019 @08:58AM
(#21354488)
Also native English: For me it's always made sense only with the loop body, as "for these do that"
Or more straightforwardly, in a way that can be applied to other English constructs, "do that for this group"
It's the same "for" in my head in both those versions.