简体   繁体   English

Boo中的WSA编译器是否可以安全使用?

[英]Is WSA compiler in Boo safe to use?

In our program we use boo as macro system about 2 years. 在我们的程序中,我们使用boo作为宏系统大约2年。 All works like a charm, but python syntax is weird for newcomers. 所有的工作都像魅力,但python语法对于新手来说很奇怪。 As I know boo has white space agnostic (WSA) compiler with ruby like syntax: instead of 据我所知,boo具有类似ruby的白色空间不可知(WSA)编译器:而不是

def Hello():
  print 'Hello'

you can write: 你可以写:

def Hello(): #notice colon!!!
print 'Hello'
end

here is ideal :) 这里很理想:)

def Hello()
  print 'Hello ruby'
end
  1. Is it safe to use? 使用安全吗?
  2. Can it be used with default syntax side by side? 它可以与默认语法并排使用吗?
  3. Can I covert a huge number of existing macros to WSA style? 我可以将大量现有宏转换为WSA样式吗?
  4. Can I add 'extra' colons via compiler step 我可以通过编译器步骤添加“额外”冒号

I won't claim to know the answers to these questions, but it might help you to know that the Brail ViewEngine uses WSA Boo and it has a few macros (written in C# though). 我不会声称知道这些问题的答案,但它可能会帮助您知道Brail ViewEngine使用WSA Boo并且它有一些宏 (用C#编写)。 You might want to look into that code. 您可能想要查看该代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM