alvin alexander
alvin alexander
Home search using google About Alvin Alexander rss feed Alvin Alexander on Twitter Donate to keep Alvin writing!

About packages and sub-packages in Scala 3 (and package objects)

By Alvin Alexander. Last updated: December 15, 2020
URL
https://stackoverflow.com/questions/2830248/what-are-nested-unnested-packages-in-scala-2-8

Thanks to this question I put on Gitter, and the subsequent answer, TIL about how packages/packaging works in Scala 2 with package objects and toplevel definitions in Scala 3.

scala
package
packages
scala
december
package object
scala 3
scala 2
2020
toplevel definitions
nesting
  • Scala: Accessing a protected field when inheriting from a class in a different package
  • An example sbt build.sbt file for a Scala 3 (3.0.0-M3) project (including scalacOptions)
  • Scala 3: Multiple packages in one file (syntax, examples)
  • Scala 3: Package objeccts are deprecated, how to create types in a top-level package and use them everywhere in your project
  • Implicit methods/functions in Scala 2 and 3 (Dotty extension methods)

books by alvin

  • Free video training course: ZIO HTTP + Caliban
  • Peter Gabriel: If we can see ourselves as ... interconnected with everything
  • Faux painting of Silas, from The Da Vinci Code
  • Is that a dagger or a crucifix in your hand?
  • Ram Dass quote: Suffering is part of our training program for becoming wise
Links:
front page photo gallery scala linux/unix alvin on twitter privacy terms & conditions
alvinalexander.com
is owned and operated by
Valley Programming, LLC
 
In regards to links to Amazon.com, As an Amazon Associate
I (Valley Programming, LLC) earn from qualifying purchases
 
This website uses cookies: learn more
This website uses cookies: learn more

alvinalexander.com is owned and operated by Valley Programming, LLC

In regards to links to Amazon.com, “As an Amazon Associate
I (Valley Programming, LLC) earn from qualifying purchases”
 
 
java
java tutorials
android tutorials
java applets
java faqs
intellij idea
eclipse ide
jdbc
jsp’s
java servlets
jfc-swing
kotlin
perl
perl tutorials
perl faqs
perl recipes
perl tutorials
Unix
linux tutorials
unix by example
tutorials
man (help) pages
programming
scala tutorials
drupal
flutter/dart
git
haskell
oop
php
mysql
postgresql
ruby
sencha
best practices
programming
software dev
testing
uml
misc
privacy policy
terms & conditions
apple/mac/iphone
career
design
funny/humor
function point
analysis (fpa)
fpa tutorial
gadgets
technology
LaTeX
alaska
colorado
cvs tutorials
wincvs tutorial
free video courses
free scala 3 video course
free functional programming video course
free advanced scala 3 video course
other
contact me
rss feed
my photos
inspirational quotes
investing
'personal' posts
science
zen, mindfulness
life in alaska
living in talkeetna, alaska