Ihor Sierow
Ihor Sierow
I dont like any of the proposals, bars, x'es, stars don't look good and also confusing, one looks like an array and others like an identifier. I'm fine with status...
Well its hard for me to imagine something else that can illustrate 'package' - its a box. Btw they use cardboard boxes to illustrate creates ¯\\_(ツ)\_/¯
By the way we already have `noreturn`. > `noreturn` is the type of: `break`, `continue`, `return`, `unreachable`, `while (true) {}` `@TypeOf(@compileError("")) == .NoReturn`
First time i saw this proposal i was positive about it, however after second reading it i've got more negative feelings. The status quo is completely fine and somewhat familiar...
Right now the style guide helps to see when something is a function or a variable or a namespace, with this only `type` would be easily recognisable. In IDE you...
I haven't tried ZLS yet. Before i mostly used Java which has similar preferred style to Zig and i not even once had a problem naming a function that has...
@andrewrk i cannot understand how did you get required size of `MyFancyType` struct 'less that one byte ... leaving room for 235 more tags'. Since struct is a product type,...
@jorangreef i've made a function that may solve your use-case: ```zig const io_uring_sqe = extern struct { opcode: u8, flags: u8, ioprio: u16, fd: i32, union1_unnamed: extern union { off:...
@jorangreef i would not expect support for this in zig because this introduces a bit of indirection "hidden memory-control flow" (you have to read carefully if some field is compatible...
Not necessarily that proposal, i mean an ability to have fields that depend on some state (or may point to the same memory, not counting sub-byte fields).