Re:What is the best way to solve an Objective-C namespace co...
by eropple on Sunday May 20, 2012 @01:46AM
(#3998061)
Agreed - C# fixed this, though (by default it maps to the directory structure, but you can change this). Scala encourages Java-style packages but lets you put them wherever you want.
[ Parent
| on HN ]
Re:What is the best way to solve an Objective-C namespace co...
by lmm on Sunday May 20, 2012 @04:56AM
(#3998337)
I find that an irritating pain with scala, actually. I move a file from one directory to another, then spend ten minutes trying to figure out why lift still can't find the class, before the facepalm moment where I realise I didn't change the package declaration in the file.
Re:What is the best way to solve an Objective-C namespace co...
by eropple on Sunday May 20, 2012 @11:55AM
(#3999089)
I agree that it's actually sort of stupid to allow it--I used the word choice I did intentionally, because C# 'fixed' it (its strong IDE support makes having files in different places pretty much impossible unless you want it to happen), but Scala isn't so lucky. At least I get it when I use IntelliJ, which doesn't even tell me before updating the package declaration. :)
I use Play or a home-rolled solution based on vertx, though. so I don't have to worry so much about finding them.