-
Notifications
You must be signed in to change notification settings - Fork 29
Compiler crash using DSL #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Remove tpt.original for Typed tree (fix #114)
Wow! that's a fast fix for a complex problem Ive hit some more issues, will write up some tickets once I can minimize. But maybe ... can you guess what
|
Thank you for your report!
You can check out Section 2.1 in https://thoughtworksinc.github.io/Dsl.scala/ldk.pdf
|
So Because in the case above, |
Do you have a reproducible example? |
Will try to minimize... get back to you Separately, I read your paper about LDK. I have a comment about the section on Eff: [Kiselyov et al. 2013] introduced effect handlers to solve the collaboration problem. However, I use Eff heavily, so obviously I am a fan. But I agree there are some problems, but I think you can describe it more precisely. In my experience, Eff works well, but when you use it alot, all your code becomes monadic. Monads everywhere shows up the limitations of So in my experience, for-notation is the most "heavyweight" part of Eff, which Im trying to get away from. I agree with Edwin Brady's conclusion that "In many cases, using do-notation can make programs unnecessarily verbose". |
Example: https://scastie.scala-lang.org/SlTwPE1YRLCunXVXudnyxQ
It complains about needing the compiler plugin (which is installed), but I think that is hiding a deeper problem, as changing the code to uncomment the other alternative makes problem go away.
I first hit a more complex example in larger codebase which I've tried to minimize above:
The text was updated successfully, but these errors were encountered: