Update page 'Day 1 reading notes'
@@ -92,7 +92,7 @@ You don't have to know what these operators all do... actually I don't even reco
|
|||||||
|
|
||||||
[1] You will probably never have to write BNF grammars, but you should be able to read them because it is by far the fastest way to learn a new language.
|
[1] You will probably never have to write BNF grammars, but you should be able to read them because it is by far the fastest way to learn a new language.
|
||||||
|
|
||||||
[2] One way that I don't recommend is using triple quotes, because this still returns a string that can be cast unintentionally to a value. I asked GPT-4 for an example and it came up with what I thought was a pretty good one:
|
[2] One way that I don't recommend is using triple quotes, because this still returns a string that can be cast unintentionally to a value. I asked GPT-4 for an example, and it came up with what I thought was a pretty good one:
|
||||||
|
|
||||||
Here's an example demonstrating an unintended side effect of using triple quotes for commenting that can change the program logic:
|
Here's an example demonstrating an unintended side effect of using triple quotes for commenting that can change the program logic:
|
||||||
|
|
||||||
Reference in New Issue
Block a user