Replies: 3 comments 3 replies
-
这是否是你想找的 ziglang/zig#1099 |
Beta Was this translation helpful? Give feedback.
2 replies
-
zig 里面元编程主要是 comptime,你可以多看下这个东西,这才是 zig 的精华。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
怎么全是一些Java的东西 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
萌新,有 java,go,rust,typescript 的背景。
昨天才刚翻完 Zig 圣经,第一眼对 zig 还是比较喜欢的。
手撸框架比较多,所以对于一个一门语言是否原生支持 “注解”(Java 的叫法, typescript 里面叫 装饰器)非常关心。
因为这个特性对于写框架来说,太实用了。
举例来说(Java),你要写一个 “表单类”,有注解支持的情况下,表单字段的验证就很容易实现:
搜了一下 zig github 上面的 issues,没有发现有专门的信息说是支持注解的。
所以想在这里问问:zig 目前支持 “注解”吗?尤其是用户自定义注解!
或者有计划支持吗?
Beta Was this translation helpful? Give feedback.
All reactions