Hacker Newsnew | past | comments | ask | show | jobs | submit | alvaroflm's commentslogin

Hey HN!

I got tired of writing field names twice: once in the struct tag and once as a constant. It was too much work to keep them consistent. So I explored two solutions: one that works at runtime with some overhead, and one with code generation. Both of these approaches have their pros and cons. But I would like to know what you guys think, and more importantly, how do you tackle this issue?

In the readme i documented the process and reasoning. It also includes some lazy benchmarks if you want to take a look

Thank you for your time

Alvaro


Please change the title to: Datastar response to misunderstandings


Why? The original title is "Greedy Developer?" and HN's rule is to "Otherwise please use the original title, unless it is misleading or linkbait; don't editorialize."

https://news.ycombinator.com/newsguidelines.html#:~:text=Oth...


just trying to be fair. maybe the original page title fits better.


I'm proposing a solution to an overlooked security concern, any feedback is appreciated, thanks !


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: