[Haskell-cafe] programming style...and type classes...
Nicholls, Mark
nicholls.mark at vimn.com
Fri Nov 4 09:57:31 UTC 2016
I’m nervous of the statement “used properly”…it’s a bit tautological, and the inference is often used the wrong way around…i.e. if it doesn’t work you didn’t use it properly….and if it did…then you did!
i.e. the logic goes.
Creating an open data abstraction is not a “proper” usage?
But not knowing future extensions requirements is a reality?
So having a language where data abstraction are open by default (unless you WANT to close them) is an attractive objective?
Typeclasses provide this?
Eureka!
Becomes DISASTER?
So is the objection is really empirical ?…i.e. typeclasses will cause you problems IF you work like this (and you don’t know what you’re doing)?
Once you know where the problems are…best steer clear….once you know the pitfalls, you can use them “properly” (successfully)?
(ironically the process of finding the problems IS not using them properly!...but that’s life I think).
CONFIDENTIALITY NOTICE
This e-mail (and any attached files) is confidential and protected by copyright (and other intellectual property rights). If you are not the intended recipient please e-mail the sender and then delete the email and any attached files immediately. Any further use or dissemination is prohibited.
While MTV Networks Europe has taken steps to ensure that this email and any attachments are virus free, it is your responsibility to ensure that this message and any attachments are virus free and do not affect your systems / data.
Communicating by email is not 100% secure and carries risks such as delay, data corruption, non-delivery, wrongful interception and unauthorised amendment. If you communicate with us by e-mail, you acknowledge and assume these risks, and you agree to take appropriate measures to minimise these risks when e-mailing us.
MTV Networks International, MTV Networks UK & Ireland, Greenhouse, Nickelodeon Viacom Consumer Products, VBSi, Viacom Brand Solutions International, Be Viacom, Viacom International Media Networks and VIMN and Comedy Central are all trading names of MTV Networks Europe. MTV Networks Europe is a partnership between MTV Networks Europe Inc. and Viacom Networks Europe Inc. Address for service in Great Britain is 17-29 Hawley Crescent, London, NW1 8TT.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20161104/0e1f1482/attachment.html>
More information about the Haskell-Cafe
mailing list