TS to JSDoc Conversion
41–50 of 163 posts
Re: TS to JSDoc Conversion
#42Earlier quoted context omitted.
where does it say that JSDoc has runtime implications?
It doesn’t and I say in my comment that it is not the same thing. Nevertheless it gives me the same uneasy feeling because you don’t know what features are going to creep into the language further down the road.
Re: TS to JSDoc Conversion
#43Earlier quoted context omitted.
ts-node [1]: am i a joke to you? [1] https://www.npmjs.com/package/ts-node
I’ve generally found tsx to be better/less hassle than ts-node https://github.com/esbuild-kit/tsx
Re: TS to JSDoc Conversion
#44Earlier quoted context omitted.
where does it say that JSDoc has runtime implications?
It doesn’t and I say in my comment that it is not the same thing. Nevertheless it gives me the same uneasy feeling because you don’t know what features are going to creep into the language further down the road.
JSDoc is like 20 years old and not part of the javascript langage, it’s just a way of formatting some comments such that they’re programmatically process able.
Re: TS to JSDoc Conversion
#45Re: TS to JSDoc Conversion
#46I love pure JS over TS any day, but isn't this using JSDoc in a way it's not meant to be used? Why would you use JSDoc as a JS type framework? Or is the post title a bit misleading...?
Re: TS to JSDoc Conversion
#47I love pure JS over TS any day, but isn't this using JSDoc in a way it's not meant to be used? Why would you use JSDoc as a JS type framework? Or is the post title a bit misleading...?
Re: TS to JSDoc Conversion
#48Re: TS to JSDoc Conversion
#49If I remember right, symfony (php framework) has comments that affect how the code runs which as far as I’m concerned means they’re not comments at all but actually code masquerading as comments. Reading about JSDoc gives me the same uneasy feeling, even if it’s not quite the same thing. Edit: Here’s one example, you can define your routes in symfony using comments. Not only that, but it’s actually the officially rec…
I don't see any comments there, I see attributes though [1]. Is that what you meant? From the page you linked: > Routes can be configured in YAML, XML, PHP or using attributes. All formats provide the same features and performance, so choose your favorite. Symfony recommends attributes because it's convenient to put the route and controller in the same place. Attributes are not comments, they are an official structur…
Re: TS to JSDoc Conversion
#50It always makes me chuckle when a bunch of non-contributors come out of the woodwork to provide their opinion on a change which will affect them not at all.
I spend months trying to solicit feedback on new experimental stremaing/cancellation APIs in Node and it's silence for a year until people start using it.
We say that contributors agreed to list pronouns in the readme or we mention inclusivity and oh-boy do a lot of random people from the internet cares about how the volunteers that write the software they use for free refer to each other internally.