简体   繁体   English

解析和传递的区别?

[英]Difference between Parsing and Passing?

I know this is basic knowledge but whenever you give parameters to a method are you 'parsing' them, or are you 'passing' them as 'parsing' could be something different?!我知道这是基本知识,但是每当您为方法提供参数时,您是在“解析”它们,还是“传递”它们,因为“解析”可能会有所不同?!

I've just never been overly sure!我只是从来没有过分肯定!

Thanks谢谢

You are passing them.你正在通过他们。

"Parsing" means trying to interpret text or strings and break it down into data elements of some kind. “解析”意味着尝试解释文本或字符串并将其分解为某种类型的数据元素。 (For example, you could parse a string describing a date to turn it into a date object, or parse a file containing source code and turn it into an executable.) (例如,您可以解析描述日期的字符串以将其转换为日期对象,或者解析包含源代码的文件并将其转换为可执行文件。)

Passing.通过。 Parsing is breaking up / interpreting strings.解析正在分解/解释字符串。

每个拼写都可以同样是同义词,例如在将日期传递给函数之前解析日期时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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