top | item 42222053

(no title)

nextcaller | 1 year ago

I'm still not sure if function coloring is also a problem in javascript. The problem became very clear in other languages like python or c#. But in javascript i've been writing code only awaiting a function when I need to and haven't ran into issues. I might write some simple experiment to check myself.

discuss

order

neonsunset|1 year ago

Why is it not a problem in JavaScript but is one in C#?

nextcaller|1 year ago

In c#/python you are forced to await the whole chain, the compiler forces you. While in javascript it allows me without a warning. That's why it seems as if things work differently in javascript, if it allows me to (not) use await freely. (I don't remember if c# was just a warning or an error).