Zig: Difference between revisions
Jump to navigation
Jump to search
Created page with "=Introduction= I have dipped my toe into zig. I have done the https://codeberg.org/ziglings/exercises/ 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<br> 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<br> I did not like *the..." |
|||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
*runtime compile time approach, the whole point of type language is to catch errors early | *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 | *errors approach, maybe a bit like Option, Result is rust | ||
*pattern match on switch | |||
*unreachable which can protect switch statements | |||
Looking down the ziglings you can see some of the features of the language to give an overview. Been spending a lot of time on Rust and I am struggling to see more benefit in zig. I will google and report |
Latest revision as of 22:39, 22 January 2025
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
Looking down the ziglings you can see some of the features of the language to give an overview. Been spending a lot of time on Rust and I am struggling to see more benefit in zig. I will google and report