Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
This particular example is machine-generated code created by translate-c, it's meant to be semantically equivalent to the C code and even uses language features that you're normally not even supposed to use (c pointers).
Reasonable Zig code looks more like this:
https://github.com/riverwm/river/blob/master/riverctl/main.z...
That said I think it's fine if you don't like the syntax. I think that some complaints are honestly too superficial to be legitimate (like complaining about buildins being prefixed with @), but at the same time Zig is often times prioritizing explicitness over "good looking".
I personally consider Swift a very good looking language, but then I look at all the new features that got added since I used it last, remember that I value simplicity over aesthetics, and go back to Zig.
Related posts
- River: A dynamic tiling Wayland compositor
- Is bspwm still in active development? There is no activity from developer's side for almost 6 months on GitHub....
- How much RAM does Sway use, compared to textual console, other WMs, and light-weight DEs?
- (UPDATED) what is your favorite WM?
- BSPWM for Wayland