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

Closed
opened 2 years ago by belliash · 2 comments
belliash commented 2 years ago
Owner

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.
belliash added the
bug
label 2 years ago
belliash added the
idea
label 2 years ago
belliash removed the
bug
label 2 years ago
likoski commented 2 years ago
Poster
Owner

Do we want to remove echo and keep print? Or to keep echo and remove print?

Do we want to remove echo and keep print? Or to keep echo and remove print?
belliash commented 2 years ago
Poster
Owner

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?
belliash changed title from echo() and printf() are treated as a special feature to echo() and print() are treated as a special feature 2 years ago
belliash self-assigned this 2 years ago
belliash closed this issue 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.