VB在C#之前很久就进行了后台编译.事实上,这是使用ReSharper的主要吸引力因素之一,它提供了这样的功能.但是,从VS 2008 / .NET 3.5 SP1开始,这一切都发生了变化.你可以阅读Scott Gu关于here的帖子,但我会粘贴相关部分:
“The C# code editor now identifies and
displays red squiggle errors for many
semantic code issues that prevIoUsly
required an explicit compilation to
identify. For example,if you try to
declare and use an unknown type in the
C# code-editor today you won’t see a
compile error until you do a build.
Now with SP1 you’ll see live red
squiggle errors immediately (no
explicit compile required).”
使用CodeRush或ReSharper肯定会增强常见语句自动完成的体验,这将使VB开发人员感觉无缝过渡.
这并没有完全解决技术问题,但开发团队是不同的,并不一定做同样的事情.换句话说,不太可能采用共享方法. This blog post摘录,由VB团队的技术主管,支持:
“Background compilation” is the
feature in VB that gives you a
complete set of errors as you type.
People who move back and forth between
VB and C# notice this,but VB-only
developers may not realize that other
languages such as C# don’t always give
you 100% accurate Intellisense and
don’t always give you all of the
errors that exist in your code. This
is because their Intellisense engines
are separate,scaled-down compilers
that don’t do full compilation in the
background. VB,on the other hand,
compiles your entire project from
start to finish as Visual Studio sits
idle,allowing us to immediately
populate the task list with completely
accurate errors and allowing us to
give you completely accurate
Intellisense.
最后一个注意事项是recent Channel9 interview与C#/ VB / F#团队的PM PM,Luca Bolognese,他强调语言不再偏向不同的方向,并将开始分享他们的相似之处.所以看起来未来会有很棒的东西!