News for hackers. Stuff that matters.
Re:Microsoft DeviceScript – TypeScript for Tiny IoT Devices by jve on Saturday June 10, 2023 @01:55AM (#36268001)
And line breaks after return statement? Is that true? Haven't stumbled on that one. So this is probably misinformation.
Re:Microsoft DeviceScript – TypeScript for Tiny IoT Devices by eropple on Saturday June 10, 2023 @09:33AM (#36270330)
No, that one is true. JS automatic semicolon insertion is dumb.

   return
     <p>
       A JSX paragraph
     </p>
is a common mistake from novices; it'll return void/undefined.

In TypeScript, at least, you get yelled at for this.