sbt / sbt-boilerplate

sbt plugin for generating scala.Tuple/Function related boilerplate code
BSD 2-Clause "Simplified" License
109 stars 19 forks source link

Design discussion for JSR 223 enhancements. #11

Closed marklister closed 10 years ago

marklister commented 10 years ago

I'm on holiday but some time soon I plan to start work on some JSR 223 enhancements to sbt-boilerplate. If necessary I'll maintain it as a separate fork.

Enhancement 1:

Parse the region between [ and # and evaluate it as a Scala Range. Use the expression to produce boilerplate.

Enhancement 2:

Create an environment containing global environment variables like maxArity

Enhancement 3:

Allow arbitrary Scala expressions in templates. Any -> String probably.

As a side effect the expression might alter the global environment like setting new maxArity etc.

@jrudolph: Any thoughts? Preferences? Is this a terrible idea?

brendanator commented 10 years ago

I'm all for Enhancement 1 :+1:

marklister commented 10 years ago

JSR 223 won't fly at the moment because sbt is limited to Scala 2.10. The discussion is on #9.

marklister commented 10 years ago

Closing -- JSR 223 won't work until sbt is built (in production) against 2.11