On Tue, Jan 11, 2011 at 6:18 AM, Gustavo Hexsel <ghex...@gmail.com> wrote:
> Actually, in Scala it's idiomatic to skip the type on vals (unless they're > complex structures or you NEED to declare the type as a higher-level, like > it's a public val of a java collection and you want to enforce the > interface). > I know, I was trying to give IntelliJ as many hints as possible though. I use explicit types when it makes my code clearer. Also, if you type "new Model<blah>()" and do an insert-variable while it's > under the cursor, it will create the val declaration for you (with the type > if you want). > Ah, I might be doing it backwards, I'll have to give it a shot. Regards, Liam Clarke > On Sun, Jan 9, 2011 at 8:11 PM, Liam Clarke-Hutchinson > <l...@steelsky.co.nz>wrote: > > > Biggest thing I miss in IntelliJ when coding Scala (I write Wicket in > Java > > for my dayjob) is my autocompletion of types. In Java you can type in > > "IModel<String> foo = new" and hit Ctrl + shift + space and it'll provide > a > > list of all types that subclass IModel, but for the time being (IntelliJ > > 10, build 99.32, Scala plugin 0.4.407) "val foo: IModel[String] = new" > with > > ctrl + shift + space does nothing. > > > > But IntelliJ does a really good job of navigating some of the byzantine > > Scala code I've been dealing with. (Some people seem to think that every > > Scala library should be a DSL replete with mysterious operators and where > > everything happens via implicit conversions nested three types deep. :<) > > It's definitely the best I've seen for Scala, but it's not quite at the > > Java > > levels of polish - but then, JetBrains have been working on the Java side > > of > > Intellij for 10 versions now. ;) > > > > > > On Sat, Jan 8, 2011 at 10:34 PM, James Carman < > ja...@carmanconsulting.com > > >wrote: > > > > > Since scala is statically-typed, the ide can (and does) give you > > contextual > > > help very easily > > > On Jan 8, 2011 2:21 AM, "Martin Makundi" < > > > martin.maku...@koodaripalvelut.com> > > > wrote: > > > >> But it will do the right thing about 90% of the time. you'll > > > subconsciously > > > >> work around 4 or 5% of the rest that doesn't work, and the remaining > > > 5-6% > > > >> will irritate you. > > > > > > > > I am used to coding 90% using context help with eclipse (ctrl+space). > > > > I am a fast writer but that speeds up my coding by 1000%. > > > > > > > > Will an IDE do that for scala 90%? > > > > > > > > I consider context help and quickfix proposals most important for > > speedy > > > work. > > > > > > > >> - imports sometimes get messed up (relative vs absolute, I hate that > > in > > > >> scala) and require a manual correction > > > > > > > > Import organization is important to me also. I like to spend my time > > > > coding logic instead of organizing text files. > > > > > > > >> - analysis is useful about 90% of the time, but it's so slow you may > > > just > > > >> not care for it > > > > > > > > What is analysis? I hope it isn't the context help ;) > > > > > > > > > > > > > > > > ** > > > > Martin > > > > > > > >> - it crashes the JVM on Oracle's JRockit (although IDEA is much > faster > > > in > > > >> that jvm) > > > >> > > > >> > > > >> On Fri, Jan 7, 2011 at 5:37 PM, Liam Clarke-Hutchinson > > > >> <l...@steelsky.co.nz>wrote: > > > >> > > > >>> Define complete. > > > >>> > > > >>> On Sat, Jan 8, 2011 at 7:52 AM, Martin Makundi < > > > >>> martin.maku...@koodaripalvelut.com> wrote: > > > >>> > > > >>> > Nice or complete? > > > >>> > > > > >>> > ** > > > >>> > Martin > > > >>> > > > > >>> > 2011/1/7 Jonathan Locke <jonathan.lo...@gmail.com>: > > > >>> > > > > > >>> > > Have you checked out IDEA? My Scala friends tell me it has > pretty > > > nice > > > >>> > Scala > > > >>> > > support. > > > >>> > > > > > >>> > > Jon > > > >>> > > > > > >>> > > "Less is more." > > > >>> > > > > > >>> > > > > >>> > > > > > > http://www.amazon.com/Coding-Software-Process-Jonathan-Locke/dp/0615404820/ > > > >>> > > > > > >>> > > -- > > > >>> > > View this message in context: > > > >>> > > > > >>> > > > > > > > > > http://apache-wicket.1842946.n4.nabble.com/Scala-Wicket-Help-and-Advice-tp3174601p3185239.html > > > >>> > > Sent from the Forum for Wicket Core developers mailing list > > archive > > > at > > > >>> > Nabble.com. > > > >>> > > > > > >>> > > > > >>> > > > >> > > > > > >