我正在写有关语言语法的文章。在方法名称中是否存在将参数置于其中的语言?
在JavaScript中: function getTopCustomersOfTheYear(howManyCustomers, whichYear) { // Some code here. } getTopCustomersOfTheYear(50, 2010); 在C#中: public List<Customer> GetTopCustomersOfTheYear(int howManyCustomers, int whichYear) { // Some code here } List<Customer> customers = GetTopCustomersOfTheYear(50, 2010); 在PHP中: public function getTopCustomersOfTheYear($howManyCustomers, $whichYear) { // Some code here } $customers = getTopCustomersOfTheYear(50, 2010); 是否有任何语言支持以下语法: function GetTop(x)CustomersOfTheYear(y) { // …