zlacker

[parent] [thread] 4 comments
1. premek+(OP)[view] [source] 2025-12-13 23:10:10
>You can generate those conversions, most people do.

Hi, what do people use to generate them, I found gserde (edit: and glerd-json)

replies(2): >>okkdev+pd >>lpil+IG
2. okkdev+pd[view] [source] 2025-12-14 01:18:42
>>premek+(OP)
The language server code action :)
3. lpil+IG[view] [source] 2025-12-14 09:03:55
>>premek+(OP)
There’s several options, depending on what you want. The most commonly used option is the language server.
replies(1): >>premek+7i1
◧◩
4. premek+7i1[view] [source] [discussion] 2025-12-14 16:14:08
>>lpil+IG
Oh nice, didn't know about it. (I have migrated from vim to neovim and half of it doesn't work for me yet)

I wonder why this is preferred over codegen (during build), possibly using some kind of annotations?

replies(1): >>lpil+zx1
◧◩◪
5. lpil+zx1[view] [source] [discussion] 2025-12-14 17:48:41
>>premek+7i1
We've not had any proposals for a design like that. We are open to proposals though! I wrote a blog post detailing the process here: https://lpil.uk/blog/how-to-add-metaprogramming-to-gleam/
[go to top]