Re:Do I Really Need a Programming Language?
by wtracy on Sunday December 29, 2013 @02:46AM
(#6978804)
Well, you could edit machine code directly, or do the next best thing and write in assembler:
I doubt that's what the author had in mind, though.
[ Parent
| on HN ]
Re:Do I Really Need a Programming Language?
by sheetjs on Sunday December 29, 2013 @02:49AM
(#6978806)
I'm surprised the author didn't write a shorter C example:
return price > 100 ? 10 : 5;
Re:Do I Really Need a Programming Language?
by pmiller2 on Sunday December 29, 2013 @03:34AM
(#6978906)
That produces a different AST than the if/else because it's an expression. :)
Re:Do I Really Need a Programming Language?
by goldenkey on Sunday December 29, 2013 @11:27AM
(#6980044)
Every LISP statement is an expression too. So if you were trying to match them, you'd use the ternary.
A real programmer would write :
83 f8 64 7e 06 ba 0a 00 00 00 c3 ba 05 00 00 00 c3
Or even :
10000011 11111000 01100100 01111110 00000110 10111010 00001010 00000000 00000000 00000000 11000011 10111010 00000101 00000000 00000000 00000000 11000011
I'd do better still, but I lost my butterfly somewhere.
Re:Do I Really Need a Programming Language?
by sklivvz1971 on Sunday December 29, 2013 @07:50AM
(#6979407)
A real programmer would hand assemble a LISP interpreter and then pass it the LISP source. Come on.