This article talking about couroutines is using Hint
and Message
objects, which are deprecated, and using the 2nd parameter for Instance.new()
which is bad practice.
It’s not a bad practice in this case, since they have no other properties to initialize.
Good point! But beginners seeing that example will make them use that parameter in cases where properties are set.
It also uses semicolons at the end of the first two lines which is unnecessary and could lead to confusion.
Yeah, who was writing the code propably had an experience with another language, it was probably shedletsky that wrote it ages ago.
This code sample and the article it appears in is slated for a rewrite which will cover multiprocessing in general, not just coroutines. The example might not exactly be a shining star, but we’re not ready yet to replace the page yet. Nonetheless we’re definitely aware of this article!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.