元编程
0 人感兴趣 · 6 次引用
- 最新
- 推荐

使用 Scala 宏解决对象转换
在 GrowingIO 服务端的开发中,我们使用 gRPC 进行微服务之间的数据通信,每个提供服务的项目,都要定义一套自己的 Protobuf 消息格式,然后利用 protoc 去生成对应语言的适配代码。

为什么 Rust 的 println! 不会发生所有权转移?
println!可能是学习Rust最常用的一行代码了。我们连续多次调用它,下面的代码编译通过,再正常不过了。可是,我们明明传的是x,并非&x,为什么没有发生所有权转移呢?
技术解析丨 C++ 元编程之 Parser Combinator
摘要:借助C++的constexpr能力,可以轻而易举的构造Parser Combinator,对用户定义的字符串(User defined literal)释放了巨大的潜力。