Weekly 20140330
Surely You're joking, Mr. Feynman!
Learn what the rest of the world is like. The variety is worthwhile.
"I could do that, but I won't" -- which is just another way of saying that you can't.
You don't have to be responsible for the world that you're in.
You have no responsibility to live up to what other people think you ought to accomplish.
Dan Grossman
- expression: syntax, type-checking, evaluate
- REPL: Read, Evaluate, Print, Loop; do not type
use
without restarting REPL - syntax:
- negation:
~5
- division:
div
- negation:
- after expression evaluated, the expression producing the result is irrelevant --> do not reuse
use
in sml - access pair/tuple:
#1 e
- naming:
-
pair
<-->pr
-
Learn C the hard way
-
switch statement:
-
return 1
--> tell OS there's an error - only integers allowed (eg. char)
-
-
use functions
- forward declaration: use function before defining them
- pointers
Comments
Comments powered by Disqus