Zig

From bibbleWiki
Jump to navigation Jump to search

Introduction

I have dipped my toe into zig. I have done the [ziglings]. I found this approach to learn a language quite hard. You do the exercises, but without doing a project straight after I feel I walk away with just an awareness which anyone reading this will say what did you expect
What did shock me was the fact I cannot use await/async as it does not work for version 0.14.0-dev.2639+15fe99957
I did not like

  • the way they managed pointers, it seemed just another way of doing it.

I did like

  • runtime compile time approach, the whole point of type language is to catch errors early
  • errors approach, maybe a bit like Option, Result is rust
  • pattern match on switch
  • unreachable which can protect switch statements