|
|
|
|
|
by SoraNoTenshi
409 days ago
|
|
I am not entirely sure what the Author is criticizing?
It looks like a comparison to Odin rather than any critic. And also: I don't quite understand most of the Arguments.
UB is often a way to ensure that certain optimizations can be made (if i remember correctly.)
Also there just are certain facts that when you have full control over memory, some things can just not be predictable. (Accessing invalid pointers as an example) Verbosity is mostly subjective. Most of Author's concerns were path lengths, which can easily be "fixed" by redefining the path into a constant.
`const debug = std.debug;`
I also think the Argument towards "it looks like java's println" full on is a bad argument. Especially because `std.debug.print` does something completely different. The whole "critic" towards `build.zig` also seems like it's done with without good faith. Yes it's daunting at first. Yes it requires to learn about the build system in the beginning. Sure those are all very real Arguments, author just doesn't want to mention the benefits of it. Then half of the arguments about comptime i also don't quite understand. It seems like it is building up the main point of the argument, but then you just get hit by a statement. So no explanation no nothing. Talking about lazy evaluation and a little bit of how SoA makes things worse (which i have no clue how that matters in this context) and then saying it's violation "no hidden control flow" is not really getting the point i feel like. |
|
He just pointed out to us language skimmers that it's a potential chicken egg problem, which we may not have considered. Perfect for this kind of article. Whereas pointing out its merits would just be recreating part of ziglang.org