可变变量的实际用途是什么? [英] What's an actual use of variable variables?
本文介绍了可变变量的实际用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
变量变量看起来很酷,但是我想不出一个在生产环境中实际使用它们的场景.这样的情况是什么?他们是如何使用的?
Variable variables seem pretty cool, but I can't think of a scenario where one would actually use them in a production environment. What would such a scenario be? How were they used?
推荐答案
我想,它的目的是允许新手程序员动态更改数据,而无需使用诸如复合类型(数组和对象)之类的复杂的东西".
Its purpose, I guess, is to allow novice programmers to dynamically change data without using "complicated stuff" like composite types (arrays and objects).
我从不使用它们.
这篇关于可变变量的实际用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文