boo

Is it possible to save a dynamic assembly to disk?

回眸只為那壹抹淺笑 提交于 2019-11-30 23:27:25
问题 I recently bought Ayende's book Building DSLs in Boo (buy it, read it, it's awesome) but I'm coming up against an implementation problem and I want to see what the generated code looks like. I would normally use reflector to look at the code but in this case the assemblies are dynamic and only in memory. Is there a way to save dynamic assemblies to disk so that I can reflect them? EDIT / My Answer : Wow, it took awhile to come back to this one. Unfortunately I left an important bit out from

Boo vs. IronPython

[亡魂溺海] 提交于 2019-11-29 10:53:51
问题 After having looked at each of these two projects, it seems that both are VERY similar. Both run on top of the CLI, both have python style syntax, both use .NET instead of the standard python libraries. So, what are the differences between them and advantages of each? 回答1: The main difference as I see it is that Boo is statically typed, meaning the type of a variable is inferred on its first assignment and is fixed from there - while IronPython has the "real" dynamic behaviour of normal

Which programming language(s) does Windows Phone 7 (WP7) support?

…衆ロ難τιáo~ 提交于 2019-11-29 09:14:35
As I recall, WP7 supports C# but does not support any of the .Net dynamic languages (Ruby or Python). Are any other programming languages besides C# supported? Could an app be developed using Boo? Officially, only C# is supported so far. Unofficially, any language that can compile to a verifiable managed assembly (the verifiability requirement applies to all dependencies, too!) is good - so you should be able to use e.g. C++/CLI, F#, Delphi Prism... Currently, officially supported is C#. In the medium term (although no time frame officially announced) will be full support for VB.Net & F#. In

What's the point of the var keyword?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 01:00:12
问题 The var keyword does away with the need for an explicit type declaration and I have read with interest the SO discussion of when it might be appropriate. I have also read about (but not used) Boo which seems to take things a step further by making it optional to declare a local variable. With Boo, both the type and the declaration can be implied. Which leads me to wonder, why did the C# language designers bother to include a var keyword at all? Update : Yes, var supports Anonymous types, but

What's the point of the var keyword?

这一生的挚爱 提交于 2019-11-25 22:15:54
The var keyword does away with the need for an explicit type declaration and I have read with interest the SO discussion of when it might be appropriate. I have also read about (but not used) Boo which seems to take things a step further by making it optional to declare a local variable . With Boo, both the type and the declaration can be implied. Which leads me to wonder, why did the C# language designers bother to include a var keyword at all? Update : Yes, var supports Anonymous types, but anonymous types by themselves do not necessitate the var keyword... var anon = new { Name = "Terry",