The next step would be to support more structured programming concepts like loops, ie. translate them to this continuation passing style using macros.
接下来将会支持更多的结构化程序设计概念,如循环,使用宏将其转换为这种连续的传递形式。
For a wide variety of metaprogramming tasks, this feature makes macros more predictable and easier to work with.
对于许多元编程任务,这个特性使宏更可预测并容易使用。
In fact, method definitions — def — are no more than Ruby macros.
事实上,方法定义——def——仅仅是Ruby的宏。
应用推荐