Join Slack
Powered by
Has anyone considered building a compiler plugin t...
# arrow
c
Charlie Tapping
01/20/2024, 5:20 PM
Has anyone considered building a compiler plugin to get rid of bind in monad comprehensions? It would be awesome to have a rust style ? operator
j
Javier
01/20/2024, 5:56 PM
It is not possible to create a compiler plugin which uses custom keywords or operators
Javier
01/20/2024, 5:59 PM
At least there are no plans K2 will support creating custom operators
c
Charlie Tapping
01/20/2024, 6:03 PM
Oh I didn’t know that 😢
y
Youssef Shoaib [MOD]
01/20/2024, 6:05 PM
There's kinda no need though because you can use
context(Raise<ErrorType>)
to not need comprehensions
❤️ 1
➕ 2
Open in Slack
Previous
Next