Liste des Groupes | Revenir à l c |
(While there's some "C" stuff in here it contains a lot of non-"C"
samples for comparison. So [OT]-sensible folks may want to skip this
post.)
On 14.04.2025 12:16, bart wrote:On 14/04/2025 05:23, Janis Papanagnou wrote:On 13.04.2025 18:39, bart wrote:[...]>
>
for(let i = 1; i <= 36; i++) {
>
Is it that hard to provide a proper for-loop where you don't have
to spell out every single detail?
You mean like in Algol 68 or maybe Simula? (Both are interesting.)
I mean like pretty much every language that hasn't copied C's
for-loop syntax. For example Lua:
for i = a, b # iterate over a..b inclusive
s1
s2
...
end
Obviously there are many and there were many programming languages
that have other and better loop syntaxes than Fortran or Lua (if
above code is all that it provides).
Les messages affichés proviennent d'usenet.