案例敏感语言与不敏感的语言?[英] case-sensitive languages vs insensitive languages?

本文是小编为大家收集整理的关于案例敏感语言与不敏感的语言?的处理方法,想解了案例敏感语言与不敏感的语言?的问题怎么解决?案例敏感语言与不敏感的语言?问题的解决办法?案例敏感语言与不敏感的语言?问题的解决方案?那么可以参考本文帮助大家快速定位并解决问题,译文如有不准确的地方,大家可以切到English参考源文内容。

问题描述

Visual Basic.NET是情况不敏感的,因此它允许编码器编写而不关心或记住变量的外壳.如果您在声明中使用的情况以外的情况下使用该变量,它还可以从"未宣布的变量"错误中缓解"未宣布的变量"错误.与C#或C ++不同的事实使其更具可读性,这与C#或C ++不同,在套管中需要良好的护理和连续的战争,并跟进 {} ,并匹配它们并弄清楚哪个为此.

我的问题是,C#比VB的优点是什么,知道两种语言之间几乎没有性能差异?

几乎没有性能差异?

在Visual Basic和C#的情况下,

推荐答案

.没有真正的性能差异.但是我认识很多人,我可以得出结论,当人们首先学习C/C ++语言时,他们更喜欢C#.人们首先学会了帕斯卡(Pascal)时,他们更喜欢视觉基本.只是语法.

本文地址:https://www.itbaoku.cn/post/2352624.html

问题描述

visual basic.net is case insensitive so it allows the coder to write without caring or remembering the casing of variables. it also relieves from the 'undeclared variable' errors if you use the variable in another case than the one used in declaration. The fact that its line termination is a line feed makes it even more readable unlike C# or c++ that need good care in the casing and contineous war with following up with the {}, matching them and figuring out which is for which.

my question is what are the advantages of c# over vb knowing that both get compiled to MSIL so there is almost no performance difference between the two languages?

推荐答案

In the case of Visual Basic and C#. There is no real performance difference. But I know a lot of people, and I can conclude that people prefer C# when they learned the language C/C++ first. And people prefer Visual Basic when they learned Pascal First. It's just the syntax.

查看更多