JuliaProgrammingForNervousBeginners
JuliaProgrammingForNervousBeginners copied to clipboard
Typo in lecture 2 of week 1
There is a typo in subsection called Line 1 is a valid Julia expression
At the end of page 4 in the note there is written the following paragraph:
"Finally, let’s note that some parts of line 1 would by themselves be valid code, namely the name and the value. A valid expression can be part some larger valid expression."
Actually, the name (mystringexample1
) only from line 1 (mystringexample1 = "Hello, world"
) is not a valid expression hence is not a valid code. Why? because if you type on the name without the equal sign at the REPL and hit enter you receive:
ERROR: UndefVarError: mystringexample1 not defined.
P.S. This is not the case in video as in the video instructor mentions that only string alone can be a valid code which is true.
I belive that if the name was already defined then entering just the name could be a valid line of code. However I do see a typo in the line, "can be part some larger valid expression.". I think it should be "can be part of some larger expression.".