Scala – tagged types

Data types in a programming language are the description or classification of the data that instructs the compiler how to treat the data. Of course, they are not only for the compiler or interpreter but also for us, the developers, as they help us understand the code big time. This is a valid definition of the data which type is Map[String, String]: [crayon-60fb64a91f4aa632518186/] This is the valid definition for our domain because both, booking and payment ids have the type String. Also

Continue Reading
Skip to toolbar