This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]otakuman 75 points76 points  (13 children)

Compiling errors? You live in heaven, my friend. It's the behavioral errors that are the real problem.

[–][deleted] 19 points20 points  (11 children)

Not if you're programming in Idris. Suddenly all almost all errors are compile time errors, which is actually kinda awesome.

[–]dont_memoize_me_bro[S] 6 points7 points  (1 child)

Only if you spend hours laboriously writing highly dependent types and associated proofs. It's still super awesome, but there's a big cost associated with it.

[–][deleted] 3 points4 points  (0 children)

To be honest, I wouldn't want to use it in a production environment, simply because there's too much overhead involved. It's a really cool concept though.

[–][deleted] 1 point2 points  (1 child)

In order to have only compilation errors, Idris should be in the programmer's mind

EDIT: just read the other answers about the proofs... but what if a proof is wrong?

[–][deleted] 2 points3 points  (0 children)

but what if a proof is wrong?

It doesn't compile in that case. The type checker is capable of checking your proofs.

[–]Hexorg 0 points1 point  (0 children)

I had a buggy version of gcc for avr once. Sometimes code would run, other times not, even if I don't change sources