News for hackers. Stuff that matters.
Re:Again on 0-based vs. 1-based indexing by anaerobicover on Wednesday January 20, 2021 @12:12PM (#25848943)
There are non-imperative logic programming languages (Prolog) where something like that would work. And those of us who started with imperative coding are probably just as confused by them in the other direction.
Re:Again on 0-based vs. 1-based indexing by Jtsummers on Wednesday January 20, 2021 @12:22PM (#25849069)
That's why I qualified the statement with "conventional". Prolog is not a conventional language, in the sense that most programmers don't know it (and I'd wager close to half of programmers have never even heard of it, if not more). C, C++, Java, JavaScript, PHP, Python, Perl, Ruby, even Rust are all imperative languages at their core and represent the dominant group of languages in conventional use.

If the OP was teaching people a language like Prolog then there wouldn't have been the same confusion.