-
Notifications
You must be signed in to change notification settings - Fork 1.1k
dotr should exec scripts #4747
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
@smarter reminded of this issue, I wonder if dotty plans to support scripting. Sure it could be a compiled lang, but for wide use it would be awesome if support scripting. However, it would introduce extra complexity. What is the trade off dev team think of? |
@liufengyun how's it going? Is it planned to be implemented in the future or we just reject it? |
@tisonkun This is definitely to be supported. There are also some thoughts to make the scripts more powerful by standardizing some features in Ammonite:
However, we are currently focusing on other priorities. External contributions are welcome. /cc : @AleksanderBG |
+1 for fixing this. It's a major pain for us book writers who have most examples in script form. |
I have never been able to get ammonite to work in windows, whereas generic scala scripting works just fine, and I use it quite a bit. My preference would be for script syntax to be 100% scalac compatible without special "script-only" syntax, which implies (among other things) that the compiler ignore a hash-bang line, and that scripts be permitted to declare a package. I would be willing to contribute to this, fwiw. |
@philwalk I think initially 100% scalac compatibility makes perfect sense. Contributions on this will be much appreciated. |
bump this issue |
Consider script below
In Scala, we can use command
scala
to exec it directly.But
dotr
could not identify bare script, and it complainsThe text was updated successfully, but these errors were encountered: