microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.29k stars 121 forks source link

to string on core types #117

Open pelikhan opened 1 year ago

pelikhan commented 1 year ago

So it auto looks ok on console

pelikhan commented 1 year ago

Needs non blocking read

pelikhan commented 1 year ago

blocked on https://github.com/microsoft/devicescript/issues/121

mmoskal commented 1 year ago

note https://github.com/microsoft/devicescript/blob/main/website/docs/language/devicescript-vs-javascript.mdx#tostring-conversions

We could call toString() automatically when the type is known, or maybe just call it always, unless the type is known to be string/number?