In Scala, if you like the builder pattern, you can ensure the build method is available only when all mandatory fields are populated, though it involves a lot of boilerplate. #scala https://blog.rhetoricalmusings.com/posts/builder1/
Login to reply