Re: New switch/case idea
- Posted by Kat Apr 02, 2009
- 1840 views
In standard Euphoria, "do" is used in the cycle (loop) constructs only.
And in bilingual Euphoria 2.5, in Russian mode, do sounds as cycle.
I just can not translate "do" of switch\select\on as "cycle" again.
So 4.x series transforms to some mumbo-jumbo with these redundant do, which do not represent stgrongly some cycle.
Do you see this side of new syntax problem now?
I see this as more a problem of how you chose to translate it. Doesn't Russian have a word that means "perform the following action ..."?
Tiggr has few single Russian words for a verb "cycle" (other than bicycle):
<V=ÑÎÂÅÐØÀÒÜ ÖÈÊË ÐÀÇÂÈÒÈß; ÄÅËÀÒÜ ÎÁÎÐÎÒÛ>
but "cycle.v" != "repeat.v" (and "repeat.v-until" loop.v != "do.v") and "do.v != "cycle.v):
<V=ÏÎÂÒÎÐßÒÜ; ÃÎÂÎÐÈÒÜ ÍÀÈÇÓÑÒÜ; ÐÅÏÅÒÈÐÎÂÀÒÜ; ÐÀÑÑÊÀÇÛÂÀÒÜ; ÏÅÐÅÄÀÂÀÒÜ; ÏÎÂÒÎÐßÒÜÑß; ÍÅÎÄÍÎÊÐÀÒÍÎ ÏÎÂÒÎÐßÒÜÑß; ÂÍÎÂÜ ÂÑÒÐÅ×ÀÒÜÑß; ÍÅÇÀÊÎÍÍÎ ÃÎËÎÑÎÂÀÒÜ ÍÀ ÂÛÁÎÐÀÕ ÍÅÑÊÎËÜÊÎ ÐÀÇ; ÎÒÐÛÃÈÂÀÒÜÑß>
"then.v" = "do.v" (but then, i do not speak Russian)...
anyhoo, this isn't a language course, but "ÄÅËÀÒÜ ÏÅÒËÞ" i think is "do loop(cycle)", and "if-then" = "if-do", so "do" = "ÄÅËÀÒÜ" or "ïðîêëàäûâàòü" or "èñïîëíÿòü" as one Russian word?
Maybe "then" = "ÂÏÐÎ×ÅÌ" or "òîãäà" , and not "ÄÅËÀÒÜ".
"cycle" is not correct for "do one time" in "if-then", so maybe Russian programming instructors have that wrong.
Kinz, i agree, "then" and "do" in programmer's language is silly, and replacing both can mean the same, but different words for different things. I have English-only text tools, and finding case-insensitive words in Russian is not possible, and i do not have Russian fonts in English text applications, so i appologize for capitalizations.
One online translation site says "do this" = "kill time".
Continue the good work, Kinz.
useless