Skip to content
  • Home Home Home, current page.
  • Moments Moments Moments, current page.

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
dibblego's profile
Tony Morris
Tony Morris
Tony Morris
@dibblego

Tweets

Tony Morris

@dibblego

Power ∧ Attitude ⇒ Performance

Brisbane, Australia
tmorris.net
Joined May 2009

Tweets

  • © 2021 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. This Tweet is unavailable.
    2. Matt Parsons  🏳️‍🌈‏ @mattoflambda 6 Mar 2019

      you can't pattern match on a function

      10 replies 1 retweet 19 likes
    3. Brian McKenna‏ @puffnfresh 7 Mar 2019
      Replying to @mattoflambda

      that's good, pattern matching should be avoided!!

      1 reply 0 retweets 5 likes
    4. Nick Tchayka‏ @NickSeagull 7 Mar 2019
      Replying to @puffnfresh @mattoflambda

      Care to elaborate more on this thought? I actually like pattern matching given that it is a pretty way of declaring conditions. I guess what you mean is that it is better to encode as many conditions into existing classes with properties? If so, pointers for this? :)

      3 replies 0 retweets 1 like
    5. Brian McKenna‏ @puffnfresh 7 Mar 2019
      Replying to @NickSeagull @mattoflambda

      use folds instead of pattern matching. Usually better because they're reusable functions.

      2 replies 0 retweets 4 likes
    6. Charles Miller‏ @carlfish 7 Mar 2019
      Replying to @puffnfresh @NickSeagull @mattoflambda

      Is there a longer-than-280-character expansion somewhere of the why behind this?

      1 reply 0 retweets 1 like
    7. Jed Wesley-Smith‏ @jedws 7 Mar 2019
      Replying to @carlfish @puffnfresh and

      well, for a start a fold/catamorphism is provided functions that handle each case individually, patterns may be partial, or conditional and have overlap, so order is important.

      1 reply 0 retweets 3 likes
    8. Jed Wesley-Smith‏ @jedws 7 Mar 2019
      Replying to @jedws @carlfish and

      but there's also https://typelevel.org/blog/2014/11/10/why_is_adt_pattern_matching_allowed.html … by @S11001001 which touches on some of the issues, although not really being specifically about it

      1 reply 0 retweets 0 likes
    9. Brian McKenna‏ @puffnfresh 8 Mar 2019
      Replying to @jedws @carlfish and

      touches on a lot of Scala issues but nothing really about the lack of code reuse. I don't think there's many resources on this sadly. I should fix that

      1 reply 0 retweets 5 likes
    10. Stephen Compall‏ @S11001001 8 Mar 2019
      Replying to @puffnfresh @jedws and

      Indeed I wasn't talking about the "can't be bothered to glance at the available combinators" issue of programming practice at all, @dibblego did that perfectly well already http://blog.tmorris.net/posts/scalaoption-cheat-sheet/ … . If readers can take the hint and generalize the point he's making

      1 reply 0 retweets 1 like
      Tony Morris‏ @dibblego 8 Mar 2019
      Replying to @S11001001 @puffnfresh and

      @NickSeagull Why would you write this: \x m -> case m of Nothing -> x Just a -> a when it is already done: \x m -> fromMaybe x m Actually, the former is the source code to fromMaybe. Why repeat it? (etc etc)

      3:04 PM - 8 Mar 2019
      • 7 Likes
      • Charles Miller Gastón Tonietti Oddvar Strømmen Philip Schwarz Tom Wadeson Pedro Furlanetto Jed Wesley-Smith
      0 replies 0 retweets 7 likes

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2021 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Cookies
        • Ads info