vix::forum

Vix 语言中文社区 · 交流语法、工具链与生态

main.vix
type Post[T] = Draft(T) | Published(T) fn show(post: Post[string]): string { match post { Draft(t) "[草稿] " + t Published(t) "[已发布] " + t } } fn main(): i32 { print(show(Draft("hello vix::forum"))) return 0 }

讨论

游客只能浏览论坛,登录后可以发帖