Passionate developer in Java and Scala. And sometimes, something else. A few months per year, someone calls me "professor". CoFounder of Scala By The Lagoon @scalagoon
It is different if you have different use cases on when :name has been specified, or not.
In a static type system, those use cases are encoded in a type, which becomes integral part of the information carried by the data. In dynamic type systems these are (hopefully) encoded in documentation and tests.
There is place and use for both systems.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
when you focus on pure data.
what is the different between
what's the problem maybe could solve?
True, but how do you encode business requirements? What does the
defrecord
look like? Is this whatspec
is for?It is different if you have different use cases on when
:name
has been specified, or not.In a static type system, those use cases are encoded in a type, which becomes integral part of the information carried by the data. In dynamic type systems these are (hopefully) encoded in documentation and tests.
There is place and use for both systems.