“_”的相关性 [英] Relevance of "_"

查看:82
本文介绍了“_”的相关性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,


我只是想知道,wat是使用_的相关性/或好处。在一个

变量之前。

ie,如果我使用变量作为_MyVariable,那么我将获得wat $ good
使用MyVariable。


提前致谢。

Hi Team,

I just want to know, wat is the relevance /or benefit of using "_" before a
variable.
i.e., if I use a variable as "_MyVariable", wat benefit I am going to
achieve than just using "MyVariable".

Thanks in advance.

推荐答案

Vinod我写道:
Vinod I wrote:
即,如果我使用变量作为_MyVariable,我将实现的好处而不仅仅是使用MyVariable。
i.e., if I use a variable as "_MyVariable", wat benefit I am going to
achieve than just using "MyVariable".




任何命名约定的唯一好处是一致性,这有助于

可读性。


-

有10种人。那些懂二元的人和那些没有b $ b的人。

http://code.acadx.com

(拉针回复)



The only benefit to any naming convention is consistency which aids
readability.

--
There are 10 kinds of people. Those who understand binary and those who
don''t.

http://code.acadx.com
(Pull the pin to reply)


没什么。您可以根据需要命名变量 - 无需特殊处理

来自编译器:)


-vJ


Vinod I <六**** @ PMAM.com>写在消息

新闻:eo ************** @ TK2MSFTNGP12.phx.gbl ...
Nothing. You can name variables however you like - no special treatment
from the compiler :)

-vJ

"Vinod I" <Vi****@PMAM.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...
嗨团队,

我只是想知道,wat是使用_的相关性/或好处。在
a变量之前。
即,如果我使用变量作为_MyVariable,我将实现的好处而不仅仅是使用MyVariable。
提前致谢。
Hi Team,

I just want to know, wat is the relevance /or benefit of using "_" before a variable.
i.e., if I use a variable as "_MyVariable", wat benefit I am going to
achieve than just using "MyVariable".

Thanks in advance.



亲爱的vinod。

我们使用_主要是为了区分属性和变量,我们可以使用

_MyProp用于proiperties和变量而不用_,并且关于好处这是

命名约定,它可以根据公司标准而变化u工作

..你可以查看你公司的命名惯例。

" Vinod I" <六**** @ PMAM.com>写在消息

新闻:eo ************** @ TK2MSFTNGP12.phx.gbl ...
dear vinod.
we use "_ " mostly to differentiate properties from variables, we can use
_MyProp for proiperties and variable without _,and regarding benefit this is
naming convention and it can vary according to company standards u work for
.. u can check with your company naming conventions.
"Vinod I" <Vi****@PMAM.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...
嗨团队,

我只是想知道,wat是使用_的相关性/或好处。在
a变量之前。
即,如果我使用变量作为_MyVariable,我将实现的好处而不仅仅是使用MyVariable。
提前致谢。
Hi Team,

I just want to know, wat is the relevance /or benefit of using "_" before a variable.
i.e., if I use a variable as "_MyVariable", wat benefit I am going to
achieve than just using "MyVariable".

Thanks in advance.



这篇关于“_”的相关性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆