echo() and print() are treated as a special feature #26

已关闭
belliash2018-07-29 07:55:19 +02:00创建 · 1 评论
管理员

Because of some features specific to PHP (like short echo tag), PH7 Engine implemented echo() and print() builtin functions twice - as standalone function and as special construct. Thereby it is possible to call print() and echo() without brackets. In Aer, there is no such need and print() should be just a builtin function. There is also no need to maintain both functions. Thus echo() can be removed.

Because of some features specific to PHP (like short echo tag), PH7 Engine implemented echo() and print() builtin functions twice - as standalone function and as special construct. Thereby it is possible to call print() and echo() without brackets. In Aer, there is no such need and print() should be just a builtin function. There is also no need to maintain both functions. Thus echo() can be removed.
belliash2018-07-29 07:55:19 +02:00 添加了标签
bug
belliash2018-07-29 08:20:49 +02:00 添加了标签
idea
,删除了标签
bug
作者
管理员

I was thinking about keeping print and removing echo. Do you think, this is bad idea?

I was thinking about keeping print and removing echo. Do you think, this is bad idea?
belliash2018-07-29 20:59:03 +02:00 修改标题 echo() and printf() are treated as a special featureecho() and print() are treated as a special feature
belliash2018-07-31 10:56:18 +02:00 指派给自己
belliash2018-08-06 17:26:51 +02:00 关闭此工单
登录 并参与到对话中。
1 名参与者
通知
到期时间
未设置到期时间。
依赖工单

没有设置依赖项。

参考:aerscript/Aer#26
没有提供说明。