- Mon Oct 31, 2016 5:24 pm
#57466
Mmiscool did post earlier in the year about the equivalent wprint and html commands being due to one of them being degraded but still retained for backwards compatability, although it wasn't mentioned which was superceding the other - and because they were interchangeable it didn't matter anyway, so long as one wasn't dropped mid version.
Considering how far Esp_Basic has evolved it's not surprising it still has an odd wrinkle, and at the end of the day I'm just thankful of what mmiscool has given us - warts n all - but seeing as the subject has been raised, here's some thoughts about the "
printy" things...
Wprint sounds like it should be jostling with
print and
serialprint, which already don't sit comfortably with each other - along with its accompanying
serialprintln,
serialprint does exactly what one would expect, whereas
Print includes terminating <CR/LF> as well as an underscore line (useful, but annoying except in small doses).
So it's the 'Print' command which has the most dinosaur DNA and may be the best candidate for a facelift, and perhaps it might be possible to kill 2 pterodactyls with 1 stone by re-asigning the Print functionality to Wprint.
That would free up
Print to just send output to browser and serial but without adding the <CR/LF> or underscore line. A new accompanying
PrintLn command could similarly send output to browser and serial plus <CR/LF>.
The
html name seems to better represents the commands capabilities of sending html codes to a web page than does
wprint (plus it is 1 less character to type!). Just some thoughts, for whatever they're worth.