Liste des Groupes | Revenir à co vms |
On 2025-04-17, bill <bill.gunshannon@gmail.com> wrote:But I thought we were talking LoC - Lines of Code and the ability ofOn 4/17/2025 8:38 AM, Arne Vajhøj wrote:Number of statements, not number of lines. That makes it 3 statementsOn 4/17/2025 8:21 AM, bill wrote:>On 4/16/2025 9:29 PM, Dan Cross wrote:>Most modern code-counting tools _are_ language aware. WhetherI wonder how they would handle BASIC? :-)
they do a better or worse job for each given language may be a
matter of debate, but most at least recognize different
languages and have some knowledge of their semantics.
>
>
10 FOR X = 1 TO 10
20 PRINT X
30 NEXT X
>
10 FOR X = 1 TO 10:PRINT X:NEXT X
>
Is the snippet above one line of code or three?
Given that they count non-blank non-comment lines then ...
>
Yes, but which is it?
Would it be three in one case and one in the other even though it is the
exact same snippet?
>
following my reasoning or 2 with Arne's reasoning. Either way, it's
still the exact same number of statements in both cases.
Les messages affichés proviennent d'usenet.