Re:Show HN: A SQL database implemented purely in TypeScript ...
by jacinabox on Monday September 28, 2020 @07:40PM
(#24622492)
A predicate is a computer program that accepts an input and returns "yes/no." A type system could be an arbitrary predicate which returns "well typed/not well typed" when given a term. But obviously there must be some difference between types and predicates, such as extensionality -- the type of an expression can be decided by examining the code alone.
Re:Show HN: A SQL database implemented purely in TypeScript ...
by dwohnitmok on Tuesday September 29, 2020 @09:45AM
(#24627716)
Are you responding to my assertion that there's no fundamental difference between type systems and static analysis? If so, if we just change "well typed/not well typed" to "acceptable/not acceptable" I think you've pretty much just described static analysis.
There is not really a fundamental difference between types and static analysis.