zzz6519003 / blog

My blog about coding
4 stars 1 forks source link

Idris day-1 #99

Open zzz6519003 opened 7 years ago

zzz6519003 commented 7 years ago

With richer information in dependent types, Idris can do things other languages can’t:

• Find more errors at compile time • Prove, or disprove, that certain elements of your program are correct—including input parameter checking • Provide powerful editing, with much more sophisticated completion than you can get in traditional languages

you might have noticed that nil or null values represent a significant percentage of all bugs. These bugs are so prevalent that Tony Hoare referred to null references as a billion-dollar mistake.3

Type classes allow the representation of increasingly specialized types.

• The language is strongly typed. • Type classes allow parameterized polymorphism. • We laid the foundation for exploring dependent types in Day 2.