News for hackers. Stuff that matters.
Re:The Roots of Lisp (2001) by lispm on Friday January 17, 2020 @12:35AM (#22072176)
You should stop oversellling things. Spec is not a type system.
Re:The Roots of Lisp (2001) by iLemming on Friday January 17, 2020 @01:49AM (#22072447)
Just because you can't do a rigorous static analysis (which to certain degree is possible, check out Spectrum) it doesn't mean that Spec is not a type system.
Re:The Roots of Lisp (2001) by lispm on Friday January 17, 2020 @02:33AM (#22072649)
That's misleading. Spec is a contract system. Read the page on the spec rationale: https://clojure.org/about/spec . It even mentions that spec is not a type system and that spec is similar to contracts in Racket, etc.

If we look at programming languages like Java, Typescript, C++, Haskell, etc., then we see that their type systems are completely different and have an entirely different purpose. Claiming to those users that spec is a type system, is just misleading them.

Re:The Roots of Lisp (2001) by iLemming on Friday January 17, 2020 @09:43AM (#22074946)
Semantics. Spec is very close to dependent types. "Entirely different purpose" is kinda vague. If the end result is the correctness of the program, the purpose is the same. If someone can perform Vivaldi's Four Seasons on Ukelele, it's cool. It doesn't make Ukelele less of an instrument.
Re:The Roots of Lisp (2001) by lispm on Friday January 17, 2020 @11:15AM (#22075903)
So, spec is the ukulele in the vast domain of Type Systems?