Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Who said FP was mandatory? Scala is not Haskell, nor Lisp! If you don't like effect systems and all, don't use them. The choice is yours, actually. Kotlin's coroutines aren't better than what Scala offers. You can even use async/await in Scala. IMO, if you get yourself in a "callback hell" with Scala, then you're not using it properly. For comprehensions are easy to understand, and work with Futures, for instance.
higher kinded polymorphism it's on the way
So, at a semantic level, all the building blocks are there. Moreover, SN is the next-iteration of a prototype project called scala-offheap that was providing exactly the kind of syntactic sugar you evoke (on JVM). So it's definitely within the realm of possibilities that SN could be enriched with such syntactic sugar, by means of a compiler phase (or a third party compiler plugin) that would make low-level managed datatypes pretty close to the syntactic UX you describe.