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

Gesloten
2018-07-29 07:55:19 +02:00 geopend door belliash · 1 comment
Eigenaar

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 voegde het
bug
label 2018-07-29 07:55:19 +02:00 toe
belliash voegde de
idea
toe en verwijderde de
bug
labels 2018-07-29 08:20:49 +02:00
Author
Eigenaar

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 titel aangepast van echo() and printf() are treated as a special feature naar echo() and print() are treated as a special feature 2018-07-29 20:59:03 +02:00
belliash heeft dit 2018-07-31 10:56:18 +02:00 aan zichzelf toegewezen
belliash heeft dit probleem gesloten 2018-08-06 17:26:51 +02:00
Log in om deel te nemen aan deze discussie.
1 deelnemers
Notificaties
Vervaldatum
Geen vervaldatum ingesteld.
Afhankelijkheden

Geen afhankelijkheden ingesteld.

Referentie: aerscript/Aer#26
No description provided.