News for hackers. Stuff that matters.
Re:Learning Elm has gotten me confused about static vs. dyna... by talles on Tuesday June 14, 2016 @03:48PM (#11904788)
That's very, very nice. Is this exclusive to Haskell?
Re:Learning Elm has gotten me confused about static vs. dyna... by jerf on Tuesday June 14, 2016 @04:07PM (#11904936)
Well, Haskell got it from Agda [1], but Agda is even farther in the direction of Haskell than Haskell relative to mainstream programming languages, and beyond the "currently practical" language horizon.

[1]: https://wiki.haskell.org/GHC/Typed_holes

Re:Learning Elm has gotten me confused about static vs. dyna... by dllthomas on Tuesday June 14, 2016 @05:24PM (#11905435)
Typed holes are quite a different thing than deferred type errors. Does Agda actually have something like the latter? (Results seem negative from the tiny bit of searching I've just done, but that's awfully low confidence...)
Re:Learning Elm has gotten me confused about static vs. dyna... by jerf on Tuesday June 14, 2016 @08:13PM (#11906392)
Whoops, you're right! I was too hasty.
Re:Learning Elm has gotten me confused about static vs. dyna... by jdmichal on Tuesday June 14, 2016 @06:20PM (#11905805)
Eclipse does a similar thing with Java. It will replace methods that don't compile with a stub that throws an exception with the compilation error.
Re:Learning Elm has gotten me confused about static vs. dyna... by talles on Tuesday June 14, 2016 @07:30PM (#11906211)
But is that transparent or they pollute the source code?
Re:Learning Elm has gotten me confused about static vs. dyna... by jdmichal on Tuesday June 14, 2016 @11:18PM (#11906994)
It's completely transparent, done only in the compiled class files. The signature of the method remains exactly the same, just the body is replaced.