有没有隐式乘法的编程语言? [英] Are there any programming languages with implicit multiplication?
本文介绍了有没有隐式乘法的编程语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一种编程语言符合以下任一条件:
Is there a programming language in which any of the following:
- 变量旁边的数字文字
3x
,-0.5y
- 括号表达式旁边的数字文字或数字变量
a(b+c+d)
2(x-y)
- 两个相邻的括号表达式
(1+x)(1-x)
(4a-5b)(1+4c)
被解释为乘法?
我可以看到这会导致语法问题,但我很好奇是否有任何语言已经提前完成了.
I can see the syntactical problems that this would cause, but I'm curious if any language has gone ahead and done it anyway.
推荐答案
TI-BASIC 做到了某些情况下.我相信某些面向 CAS 的语言也是如此.
TI-BASIC does it in certain circumstances. I believe that certain CAS oriented langauges do as well.
这篇关于有没有隐式乘法的编程语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文