Option.getとかFuture.getとかList.headとかunsafePerformIOとか最終的にCopointedとか色々
People using Option.get when the option instance can quite reasonably be None should clearly be flogged.
2012-03-06 01:28:13@timperrett Use Maybe. You can get a value only when there is one.
2012-03-06 03:13:57@timperrett there is no valid use-case for Option.get. It should not exist.
2012-03-06 06:09:35@loverdos @timperrett Maybe has fromJust and is the equivalent of Option.get. Both are mistakes.
2012-03-06 06:10:52@dibblego Agreed! I'm at a loss as to why people use it.
2012-03-06 06:14:14@dibblego Sorry, I was referring to my maybe (feel free to shoot, it is still evolving) https://t.co/0Gie096x /cc @timperrett
2012-03-06 06:22:15@viktorklang @dibblego @timperrett Same with Future.get and unsafePerformIO
2012-03-06 06:49:16@runarorama @viktorklang @dibblego @timperrett Sounds like you guys are opposed to partial functions in general.
2012-03-06 07:07:26@runarorama @viktorklang @dibblego @timperrett Technically though, unsafePerformIO sits in a very different category.
2012-03-06 07:07:39@runarorama Yup, Future.get is horrible. /cc @dibblego @timperrett
2012-03-06 07:11:48@runarorama @viktorklang @timperrett ha, was about to say that. Scala guys are averse to Option.get but not unsafePerformIO. Little steps.
2012-03-06 07:12:20@djspiewak @runarorama @viktorklang @timperrett Not in general, just those for which there is always a superior solution.
2012-03-06 07:13:08@dibblego Not a single "unsafePerformIO" in my codebase. No reason for hatin' /cc @runarorama @timperrett
2012-03-06 07:16:38@dibblego @runarorama @viktorklang @timperrett For any partial function, there is an equivalent total function on a lifted domain.
2012-03-06 07:18:59@timperrett poor problem-solving skills. Just teach them to the extent possible.
2012-03-06 07:19:01@dibblego @runarorama @viktorklang @timperrett So, if by "superior" you mean "total alternative", then that is always the case.
2012-03-06 07:19:16@viktorklang @runarorama @timperrett yes there is. No "hatin."
2012-03-06 07:27:34@djspiewak @runarorama @viktorklang @timperrett I mean, even in the absence to strive for a total function, one can always improve.
2012-03-06 07:29:48@dibblego No. ➜ ~AKKA git:(release-2.0) grep -r "unsafePerformIO" . ➜ ~AKKA git:(release-2.0) /cc @runarorama @timperrett
2012-03-06 07:29:57@dibblego @runarorama @viktorklang @timperrett I still don't know how to avoid unsafePerformIO in a Scala gui interactive app doing IO
2012-03-06 07:30:25@viktorklang @runarorama @timperrett denial won't make it go away mate. Seriously, it just won't happen.
2012-03-06 07:30:36@etorreborre @runarorama @viktorklang @timperrett with difficulty and of course, sufficient library support.
2012-03-06 07:31:50@dibblego @runarorama @viktorklang @timperrett let's keep that for the next time I see you then :)
2012-03-06 07:36:38