|
I think this is a pretty bad idea too but, to be fair, languages like Java do a ton of this stuff at compile time too, e.g. Jooq. What I dislike most about macro based DSLs is that inevitably they will end up like C++-style template monstrosities that are poorly documented and where there is no hope of sane autocompletion.
|
# ¿ Aug 12, 2017 19:19 |
|
|
# ¿ Apr 29, 2024 11:12 |
|
Love Stole the Day posted:What do you guys recommend for GUI crates? You can still use a binding to QML perhaps (or even to IMGUI if you don't have too many requirements)
|
# ¿ Oct 26, 2017 14:15 |
|
If you're looking for analogues with other languages perhaps it's useful to think of these implementations as extension methods you may have seen in C# or Kotlin. They augment an existing class but they also require both the class and the extension methods to be imported separately.
|
# ¿ Apr 7, 2019 19:02 |
|
I also find it odd that after all of the development work that went into the IntelliJ/CLion Rust plugin it still falls over on these use cases. I mean, I'm convinced there's a ton of effort involved to get it to this point, but you'd expect auto-complete to more or less work by now. I've had similar issues with fairly basic types where it would infer the wrong type (and give me red squigglies), but 'Go to definition' worked flawlessly. I'd expect that to use the same information, but I guess not. Like you, for me it's still a bit of a blocker to be really productive. Types can become so complex and unwieldy that even looking at the docs can be fairly useless. "Oh, so I know this is a Descriptor<T> but you're not even telling me what T is".
|
# ¿ Aug 26, 2019 15:20 |
|
That's one of the most annoying things about the language for me, currently. I understand why the restriction is there but as a regular developer it ends up feeling like such an arbitrary restriction around a very common use case.
|
# ¿ Mar 14, 2020 23:17 |
|
You either have a gas leak or there are some snakes on the loose in your apartment.
|
# ¿ May 4, 2021 22:08 |
|
We use Axum as well and it's pretty nice, can recommend.
|
# ¿ Sep 18, 2022 10:54 |
|
Ranzear posted:Just duplicate the damned code, lol. That's exactly what the compiler does with generics anyway.
|
# ¿ Mar 5, 2023 14:00 |
|
|
# ¿ Apr 29, 2024 11:12 |
|
Take a look at nom, perhaps?
|
# ¿ Dec 16, 2023 20:06 |