Publication | Open Access
A language for specifying type contracts in erlang and its interaction with success typings
16
Citations
7
References
2007
Year
Unknown Venue
Software MaintenanceEngineeringType TheorySoftware EngineeringSemanticsSoftware AnalysisFormal VerificationErlang LanguageSyntaxLanguage DocumentationDependently Typed ProgrammingComputational LinguisticsLanguage StudiesProgramming LanguagesErlang/otp SystemComputer ScienceType ContractsType SystemExtensible LanguageSoftware DesignSpecification LanguageAutomated ReasoningProgram AnalysisSoftware TestingFormal MethodsSmall ExtensionDesign By ContractSuccess TypingsLinguisticsSoftware Language Engineering
We propose a small extension of the Erlang language that allows programmers to specify contracts with type information at the level of individual functions. Such contracts are optional and they document the intended uses of functions. Contracts allow automatic documentation tools such as Edoc to generate better documentation and defect detection tools such as Dialyzer to detect more type clashes. Since the Erlang/OTP system already contains components which perform automatic type inference of success typings, we also describe how contracts interact with success typings and can often provide some key information to the inference process.
| Year | Citations | |
|---|---|---|
Page 1
Page 1