简体   繁体   中英

Is WSA compiler in Boo safe to use?

In our program we use boo as macro system about 2 years. All works like a charm, but python syntax is weird for newcomers. As I know boo has white space agnostic (WSA) compiler with ruby like syntax: instead of

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?
  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). You might want to look into that code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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