电话:有必要吗? [英] Call: Is it necessary?

查看:92
本文介绍了电话:有必要吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello World


使用致电是否有必要?您可以在不使用该关键字的情况下调用函数吗?第二个问题,使用呼叫表现得更快?


Rey Sean

Hello World

Using a Call is it necessary? You can call a function without using that keyword right? Second question, which performs faster, using a Call or not?

Rey Sean

推荐答案

指定 CALL 是可选的,并且可以在编程中使用。


这不涉及任何性能问题。
Specifying CALL is optional and is agood practise to use in programming.

That does not involve any performance issue.



指定 CALL ...是编程中使用的好习惯。
Specifying CALL ... is agood practise to use in programming.



这完全是一个意见问题。你很难期望在每个语句之前使用CALL,那么为什么选择特定的呢?


当然,可扩展语言的全部意义在于扩展是无缝地集成到它中,并且不需要使用特殊的编码。

That is entirely a matter of opinion. You would hardly expect to use CALL before every statement, so why pick out particular ones?

Surely the whole point of an extensible language is that the extensions are integrated into it seamlessly, and don''t require special coding to use.


使用Call语句更多的是可读性偏好。


但是要注意,在子例程上使用它是唯一安全的,而不是函数,就像它在函数上使用它会导致返回值被忽略一样。
Using the Call statement is more of a readability preference than anything.

Be aware though, that it''s only safe to use it on Subroutines, not Functions, as when it''s used on Functions it causes the returned value to be ignored.


这篇关于电话:有必要吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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