News for hackers. Stuff that matters.
Re:Java Is in Decline, and There's Data to Prove It by pharmakom on Sunday January 01, 2023 @09:23AM (#34206456)
An Async<T> is not a T whether you have the monadic sugar or not.

Why make life more difficult when you can have code that reads linearly?

Re:Java Is in Decline, and There's Data to Prove It by wiseowise on Monday January 02, 2023 @09:08AM (#34217945)
In Kotlin it is just T, the function is suspend.
Re:Java Is in Decline, and There's Data to Prove It by pharmakom on Monday January 02, 2023 @11:06AM (#34219442)
Then the language is implicitly converting it through suspension for you. They are still different things. What if you don’t want that to happen?