Tags » Pattern Matching

Improved Pattern Matching in Kotlin

Kotlin doesn’t have true pattern matching, and that’s fine. In order to make matchable classes in Scala, there is an awful lot of overhead required to make it work, and I highly respect Kotlin’s goal of not adding much overhead anywhere. 766 more words

Functional Programming

Pattern Review - Mccall 5466 View B (Pattern matching 101)

Why I bought this Pattern

I actually got this pattern for free when I registered on Printsew. I really liked the look of the styles and the plaid used on the cover so I knew I’d like to try to replicate that look. 406 more words

Pattern Review

Picking the Perfect Patterns

Today I want to talk about patterns and pattern matching. While this may seem like an overwhelming task to the uninitiated, it’s really very simple. But before we go into the… 524 more words

Style

Pattern Matching and failing at adulting.

Have you ever felt like you were  failing at being an adult? I opened my e-mail today for the first time in about two weeks to find over 5000 waiting for me. 863 more words

Sewing

The clock is ticking on the Ty Hafan challenge

It’s the final push on the Cardiff Fashion Week Ty Hafan now and the deadline is in 9 days! Everything’s taken me a lot longer than I expected so I am very behind on my plans but at least I started with the biggest, most difficult outfit first. 146 more words

Sewing

PowerShell: pattern matching

Here, I am defining a hex character, as 1 of A-F (case insensitive) or 1 of 0-9. The format is no different from any other common Regex/pattern matching implementation: 316 more words

PowerShell

How Functional Programming will (Finally) do Away With the GoF Patterns

A recent article about various ways to implement structural pattern matching in Java has triggered my interest:
http://blog.higher-order.com/blog/2009/08/21/structural-pattern-matching-in-java

The article mentions a Scala example where a tree data structure can be traversed very easily and neatly using Scala’s… 586 more words

Java