Skip to content

Commit 9327810

Browse files
authored
Merge pull request #82 from xNaCly/patch-1
Remove unavailable YouTube video
2 parents 58c9f63 + 7aa715f commit 9327810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_parts/part2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typedef enum {
6969
typedef enum { PREPARE_SUCCESS, PREPARE_UNRECOGNIZED_STATEMENT } PrepareResult;
7070
```
7171
72-
"Unrecognized statement"? That seems a bit like an exception. But [exceptions are bad](https://www.youtube.com/watch?v=EVhCUSgNbzo) (and C doesn't even support them), so I'm using enum result codes wherever practical. The C compiler will complain if my switch statement doesn't handle a member of the enum, so we can feel a little more confident we handle every result of a function. Expect more result codes to be added in the future.
72+
"Unrecognized statement"? That seems a bit like an exception. I prefer not to use exceptions (and C doesn't even support them), so I'm using enum result codes wherever practical. The C compiler will complain if my switch statement doesn't handle a member of the enum, so we can feel a little more confident we handle every result of a function. Expect more result codes to be added in the future.
7373
7474
`do_meta_command` is just a wrapper for existing functionality that leaves room for more commands:
7575

0 commit comments

Comments
 (0)