You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.
MethodError indicates this quite well and as shown gives a more informative error message than you will write. An often overlooked feature is that you can declare a function without providing any methods.
When one is in this situation, defining a interface that another package would implement, one can provide a test-suite for testing it was implemented correctly. This is a function they can call in their tests to at least check they have the basics right. This can take the place of a formal interface (which Julia doesn’t have), in ensuring that a contract is being met.
The text was updated successfully, but these errors were encountered:
Current situation
After reading https://white.ucc.asn.au/2020/04/19/Julia-Antipatterns.html, I realised that, currently, this situation occurs for some types in the code:
https://github.com/AlexS12/FlightMechanics.jl/blob/master/src/models/aerodynamics.jl#L24
https://github.com/AlexS12/FlightMechanics.jl/blob/master/src/models/dynamic_systems.jl#L10
https://github.com/AlexS12/FlightMechanics.jl/blob/master/src/models/propulsion.jl#L5
More may be found...
Objective
Adopt language paradigms and really obtain helpful error messages
Solution proposal
As suggested in: https://white.ucc.asn.au/2020/04/19/Julia-Antipatterns.html
The text was updated successfully, but these errors were encountered: