【发布时间】:2013-06-13 22:00:06
【问题描述】:
查看 Ruby 代码,proc_arity 有以下内容:
static VALUE
proc_arity(VALUE self)
{
int arity = rb_proc_arity(self);
return INT2FIX(arity);
}
更多的是一个 C 编码风格的问题,但为什么 static VALUE 在单独的一行而不是这样的:
static VALUE proc_arity(VALUE self)
【问题讨论】:
标签: c ruby coding-style