News for hackers. Stuff that matters.
Re:Eiffel programming language by pezo1919 on Sunday February 09, 2020 @11:19AM (#22282784)
To me Eiffel and its pre/postconditions are clearly inferior to Dependently Typed languages like Idris. (Also check Agda, Liquid Haskell...)
Re:Eiffel programming language by elviejo on Sunday February 09, 2020 @01:38PM (#22283552)
Except for the little fact that Eiffel has had those features since 1986.

Agda first release was in 2007 Idris also in 2007 Liquid Haskell thesis was published in 2016

Re:Eiffel programming language by pezo1919 on Sunday February 09, 2020 @02:46PM (#22283935)
Note the words "to me".
Re:Eiffel programming language by carapace on Sunday February 09, 2020 @12:09PM (#22283086)
Why?
Re:Eiffel programming language by pezo1919 on Sunday February 09, 2020 @12:17PM (#22283133)
Because you can express these conditions and check compile time instead runtime.
Re:Eiffel programming language by pjmlp on Sunday February 09, 2020 @12:49PM (#22283288)
Some contracts can be checked at compile time, if enough information is present.

In fact one of the design decisions driving C++ contracts, which now will probably only show up in C++23 due to some last minute issues, is how the optimizer can take advantage of contracts while generating code.

Languages like Idris are quite interesting for us on HN, but I seriously doubt that the kind of developers that languages like Eiffel are targeted to, would be able to take advantage of them with their current tooling state.

Re:Eiffel programming language by ncmncm on Sunday February 09, 2020 @05:11PM (#22284672)
C++26, if then.

There were no actual issues. At the last minute a bunch of people came up with a bunch of incompatible complexifications in support of <1% uses, and that added enough confusion to kill it.

Much of the confusion came from people afraid that the optimizations might be bad.

Now the same people who came up with the complications are driving the redesign, with no clear goals or unifying architecture, and no participation by the original designers. Don't expect to see contract support anytime soon.

Re:Eiffel programming language by pjmlp on Monday February 10, 2020 @01:30AM (#22286862)
Yeah, that might very well be the case.
Re:Eiffel programming language by pezo1919 on Friday February 14, 2020 @09:54AM (#22327026)
Can you tell me what kind of contracts can be checked compile time? (I assume you did not just mean types asserts.)

What I've read about Eiffel on many sites is only runtime check (on more advanced constraints).