Re:Dotty: a next generation compiler for Scala
by heartsucker on Wednesday June 22, 2016 @09:51AM
(#11953872)
Maven is an archaic, verbose nightmare compared to SBT. SBT can be annoyingly esoteric at times, but even for the simplest thing like "add these JARs and compile," SBT wins over Maven, no question.
[ Parent
| on HN ]
Re:Dotty: a next generation compiler for Scala
by lmm on Wednesday June 22, 2016 @12:38PM
(#11955186)
Not true. Maven may be verbose, but
<groupId>com.foocorp</groupId>
<artifactId>foo</artifactId>
<version>1.2</version>
is far less archaic and more understandable than "com.foocorp" % "foo" % "1.2"
Re:Dotty: a next generation compiler for Scala
by pfn on Wednesday June 22, 2016 @01:40PM
(#11955641)
actually, the latter is far more readable without markup making my eyes bleed.
I generally prefer gradle's method of 'com.foocorp:foo:1.2' but that isn't acceptable statically. scala string interpolators could make it a thing, though.
Re:Dotty: a next generation compiler for Scala
by harveywi on Wednesday June 22, 2016 @01:59PM
(#11955746)
Unfortunately, we have things like this in the mix...
libraryDependencies += "com.lihaoyi" %% "scalatags" % "0.4.3"
libraryDependencies += "com.lihaoyi" %%% "scalatags" % "0.4.3"
Re:Dotty: a next generation compiler for Scala
by virtualwhys on Thursday June 23, 2016 @12:59AM
(#11958934)
To be fair you'd only be using one or the other, `%%` for jvm-only, and `%%%` for cross platform jvm/js builds.
Far and away the biggest blocker to learning sbt is the shaky IDE support for the build project. Apparently that's coming up next in 1.0; will be nice to click through to source from sbt build files and instantly grok what X symbol means. Have wasted a lot of time over the years slogging through documentation...
Re:Dotty: a next generation compiler for Scala
by lmm on Thursday June 23, 2016 @01:51PM
(#11963008)
A build definition format that allows arbitrary code anywhere is always going to have less-good IDE support than one based on declarative documents.
Re:Dotty: a next generation compiler for Scala
by kmiroslav on Thursday June 23, 2016 @02:21PM
(#11963233)
I don't see why, as long as the IDE sees the build file as a genuine source file for the language it's written in.
The IDE would need to run it to understand the build definition, which then gets into halting-problem issues.
Re:Dotty: a next generation compiler for Scala
by premium-concern on Wednesday June 22, 2016 @09:20PM
(#11958277)
I'd just use
ModuleID(organization = "com.foocorp", name = "foo", revision = "1.2")