Feedback: New using directive syntax #578
romanowski
started this conversation in
General
Replies: 1 comment 1 reply
-
This seems good to me and makes sense. I hadn't though about the "de-commenting interaction", but I think it's worth adding the //> syntax if it is likely that I will be able to use One suggestion: Add an example to the deprecation message so users can see how to write it in the new syntax. I mean explicitly show the exact syntax; just saying "add >" is not perhaps open for interpretation and guessing ("huh!? should it be at added at the end of the line or after the //?" etc). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, the upcoming
0.1.0
release will bring a new syntax for using directives, namely:// using foo bar
and/* using foo bar */)
is deprecated@using
)>
://> using foo bar
and/*> using foo bar */
Old syntaxes will still work in
0.1.x
releases but will results in warnings like this one:Why do deprecate the comment syntax? With keyword-based directive, in a situation when one would like to comment out such directive (and this is the only directive in the file) simply adding
//
before the directive will just change its syntax when user will expect that the directive is ignored.There is a bit of time before the
0.1
so we would love to hear some feedback about changes in using directives syntax.0.1.0
will bring the ability to run snapshot version directly from scala-cli (or any version if anyone really cares about stability) but until now snapshots can be tested with coursier using snapshot from our master branch. Unfortunately, we publish only jars for nightlies so scala-cli may not be as snappy as in stable releases (it will be JVM app, not a native one as for stable release). To try it out, the following command can be used:It will create
scala-cli-nightly
binary in the current directory that later can be used to try out new syntax.Please let us know here. what do you think about new syntax.
Beta Was this translation helpful? Give feedback.
All reactions