[Coco] C VS Basic Coco

Mark McDougall msmcdoug at iinet.net.au
Tue Feb 13 20:12:03 EST 2018


On 14/02/2018 3:08 AM, Taylor, Phillip L CIV wrote:

> I the reason I like basic is because it's much easer to learn and read the source code.  The example below 8 lines of basic code 6 lines of code vs C is 8 lines of code.

Aside from missing the assignment of A=10 in the basic listing you're 
taking a bit of poetic licence in describing that as 8 lines of C code; 
you've also included the C program overhead to compare against a BASIC 
code snippet... plus (IIUC) technically they generate different output 
so... apples and oranges.

FTR I'd call that 2 lines of C myself...

for (int a=10; a<20; a++)
   printf ("value of a: %d\n", a);

Regards,

-- 
Mark McDougall
<http://retroports.blogspot.com.au>


More information about the Coco mailing list