Learning Zig Live - Chapter 12
Автор: INCD021
Загружено: 2025-12-15
Просмотров: 45
Описание:
Revisits program that lists directory contents and reads a file, then experiments with error handling—wrestling with optionals, out-of-memory checks, try/catch, and type unions while chatting through the learning curve.
The session ends with testing error outputs.
Chapters:
00:00 Intro and recap of the directory listing app
00:01 Build check, file read, goal to improve error handling
00:03 Questioning optionals vs error unions in the loop
00:05 Trying to detect out-of-memory on buffer allocation
00:09 Type mismatch struggles and consulting the manual
00:12 Switching to catch over try for allocation failures
00:17 Success printing allocation errors and type names
00:21 Testing forced failures and confirming expected output
00:25 Exploring open-directory errors and the union of possibilities
00:29 Attempting switches and Visual Studio Code code actions
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: