<div class="gmail_quote">On 6 September 2010 22:52, Ceki Gülcü <span dir="ltr">&lt;<a href="mailto:ceki@qos.ch">ceki@qos.ch</a>&gt;</span> wrote:</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">The naming question is actually harder than it seems.</div></blockquote><div><br></div><div>Like always ;-)</div><div><br></div><div>In this particular case we have to be very careful, because SLF4J is an extremely popular and widely spread piece of software and we are talking about API naming.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The choice of the package name could drive the name of the module. How about org.slf4j.scala for the package name and slf4j-scala for the module name?<br>
</blockquote><div><br></div><div>As SLF4S is not a (bridge to a) logging backend, I think it should have &quot;api&quot; in its name just like slf4j-api =&gt; slf4j-scala-api or slf4j-api-scala.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The org.slf4s package name is nice except that it has no corresponding web-site (which of course can be remedied). More importantly, the org.sfl4s package name does not convey the relationship between slf4j and slf4s. If slf4s code ships with slf4j, then I think it should be under the org.slf4j namespace. Given this namespace constraint, org.slf4j.scala is the best I could come up with.</blockquote>
<div><br></div><div>I agree with you that we have to use org.slf4j as the name of the root package. </div><div><br></div><div>If we are going for subpackages, then org.slf4j.scala would probably be the best choice. In Scala versions prior to 2.8 you better didn&#39;t use &quot;scala&quot; as a package name, but SLF4S is for 2.8 and higher where this isn&#39;t an issue any more.</div>
<div><br></div><div>But nevertheless I don&#39;t like using &quot;scala&quot; as a package name. First it simply feels wrong, but that&#39;s probably just me. Second and more important, there is no semantic value in &quot;scala&quot;. Therefore we could also choose a different approach: Just use org.slf4j as the package name and call the types differently. Actually it&#39;s only Logger which is used in both SLF4J and SLF4S. Why not call it SLogger (for ScalaLogger or SmartLogger or ...). How do you like that idea?</div>
<div><br></div><div>Regarding OSGi support we of course would have to make the slf4j-api-scala module a fragment of slf4j-api in order to avoid the split package issue.</div><div><br></div><div>Heiko</div><div><br></div></div>
Company: <a href="http://weiglewilczek.com" target="_blank">weiglewilczek.com</a><br>Blog: <a href="http://heikoseeberger.name" target="_blank">heikoseeberger.name</a><br>Follow me: <a href="http://twitter.com/hseeberger" target="_blank">twitter.com/hseeberger</a><br>
OSGi on Scala: <a href="http://scalamodules.org" target="_blank">scalamodules.org</a><br>Lift, the simply functional web framework: <a href="http://liftweb.net" target="_blank">liftweb.net</a><br>Akka - Simpler Scalability, Fault-Tolerance, Concurrency &amp; Remoting through Actors: <a href="http://akkasource.org" target="_blank">akkasource.org</a><br>