3 ms·
I'm pretty sure that if C was the first language presented to me back in college, I would have found a new major. C was more convenient than doing assembler, b
by Roboprog 10y ago
I'm pretty sure that if C was the first language presented to me back in college, I would have found a new major.
C was more convenient than doing assembler, but not much more, compared to say Pascal. (Having learned BASIC, FORTRAN 77, Pascal, PDP-11 ASM, Lisp at school, and some dBASE at work, before we switched over to C at school, which seemed like a big step backward)
var s : string; multi : integer;
...
s := 'Hello' + ' ' + 'world';
multi := 616;
writeln( s, ' ', multi : 4);
vs
char s[ 256 ]; int multi;
...
s = strcat( strcat( "Hello", " "), "world");
multi = 616;
printf( "%s %d4\n" s, multi);
It's a shame no work was put into good Modula 2 compilers (for various platforms) around 85-90, rather than running with C as the standard. Imagine all the security disasters that probably would have been avoided.
- Retra 10y agoC was my first language, and I did find a new major (Physics/Mathematics.) I only considered going back for a CS degree after learning Haskell.