logoalt Hacker News

krecolast Tuesday at 6:29 PM2 repliesview on HN

Could you describe briefly what feature you are sorely missing?

I like the language intention but I can't get past the syntax.


Replies

Ciericlast Tuesday at 7:04 PM

For me it's all comptime stuff and it's kind of arbitrary things like parsing out the type information of a function doesn't include the name of the function parameters, but basically everything else that has a name has that information present in their info structure. The other thing is tags, being able to tag things that I can parse at compile time. I'm making something close to a database orm, (specifically it's spacetimedb, thought it'd be fun to use zig with). But information about things like primary keys, auto increments, constraints and similar all has to live in a different structure completely untied to the original struct or function. I'd like to be able to tie those things together easily to avoid mistakes and confusion. I have different workarounds that I've tried, but nothing that's universal for all my test cases.

For syntax there are a few things that I'm iffy on, but nothing that I'd consider a deal breaker. I found it very easy to read right out of the gate, which is basically the only thing I need to really learn a new language (probably the only reason I haven't learned rust yet.)

show 2 replies
klysmlast Tuesday at 6:52 PM

Syntax is so much less important that semantics that it isn’t even really worth talking about in my opinion

show 1 reply