Comments (8)
Hi @dimbleby, thanks for passing by.
This PR #44 does show that the expected behaviour is indeed to throw errors for uncaptured variables. I just tried to model the akka logic very badly (don't pay attention to it) so that i can copy/paste your code from here to convince you that it works.
Despite the example I provide works, it looks like you may have found a corner case that our macros are not handling. In order to fix it, it would be useful if you can share that code or, even better, to submit a PR just like the one I did showing that your example fails.
As a side note, you got the concept correctly.
from spores.
Hi, thanks for the quick response.
I've put a complete (but small) example project here - in particular, see these lines.
from spores.
Great! I think it's a bug that should have a rather straightforward fix. Have you been able to reproduce it without the use of delayed
?
from spores.
Sure, it makes no difference.
from spores.
Nice, I'll work on it and get back to you when I get it solved. Thanks for the error report!
from spores.
Hi @dimbleby, as I expected, this issue only occurs in 0.2.1
, but it doesn't in the most up-to-date 0.2.3
version. I've just added three tests that replicate exactly your toy project, and they fail. When cloning your project and changing spores version to 0.2.3
AND publishing locally, the project compiles just fine.
We're due to cut a release very soon. If you find yourself in a hurry, publish locally via sbt. Hope to have solved your problem, I'll be waiting for your confirmation.
from spores.
Great, thanks. I'll look forward to trying again with the new release.
If you're satisfied that this is fixed, please feel free to close the issue without waiting for my confirmation - I can always open a new one if I still see problems!
from spores.
Great, thanks!
Let's do that. You can see that tests are passing #44.
from spores.
Related Issues (20)
- the fun is not static
- No Unpickler found for SporeWithEnv
- classOf within spore body not supported
- Pickling spore fails to compile with one captured value
- Nested nullary spores
- Create tag for 0.2.0 release HOT 1
- Update to scala-pickling 0.10.1 HOT 1
- Update readme for 0.2.0
- Bypassing static constraint with a function HOT 4
- spores not serializable with spark? HOT 9
- Convertion from functions to spores doesn't recognise `()` as `Unit` HOT 1
- Allow spores to infer types HOT 2
- `SporeWithEnv` is not unpicklable when it is treated as `Spore` HOT 1
- Spore Equality HOT 4
- Bad interaction between Excluded and Nothing
- Release 0.2.3 version of spores HOT 1
- Spores don't prevent capture of `this` HOT 2
- Soundness of Excluded-type composition in paper?
- Help make it obvious that scalacenter/spores is the official repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spores.