On Mon, Apr 8, 2013 at 7:59 AM, Joachim Breitner <[email protected]>wrote:
> Hi, > > I believe one problem with non-linear patterns would be that the > compiler has to figure out what notion of equality you want here. An > obvious choice is (==), but the Eq instances might not do what you want. > Using pattern guards or view patterns explicates this choice. > What other types of equality would be possibilities? Also, for some history, this was discussed a while back: http://www.mail-archive.com/[email protected]/msg03721.html Erlang programmers have this feature without shooting themselves in the foot too often. That said, I'm happy without it. Tom
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
