Why Zig + Qt Feels Like Doing the Impossible Right

34 points by rcalixte


rcalixte

In the interests of full disclosure, I did not participate in the creation of this post. The author spent his own time and used his own words without any external influence.

drs

What about instead of calling it New and New2 (and I saw a New3) you name it NewWithParent or NewWithParams(struct new_params *params) and then you pass a struct inited with designated initializes (not sure if this is possible in Zig as I'm more familiar with C). I suppose another possibility is varargs like Motif had, but I know that is not type safe...