Sushant Pantsushantpant.com.np·Mar 22, 2024Pattern Matching, Switch Expression and MoreOne of the major feature of C# version 7.0 was pattern matching. Pattern matching is a way to recognize structure or pattern within some context. Think of pattern matching like a simple puzzle where you examine the pieces and look for matching edges ...Discuss·10 likes·139 readspattern-matching
Jindřich Ivánekjindraivanek.hashnode.dev·Jan 18, 2024F# tips weekly #2: Single case pattern matchEvery F# programmer is likely familiar with pattern matching using the match keyword, as illustrated below: match x with | Some 0 -> "Zero" | Some n when n > 0 -> "Positive" | Some n when n < 0 -> "Negative" | None -> "Unknown" However, a less well-...Christian Steinert and 1 other are discussing this2 people are discussing thisDiscuss·4 likes·538 readsF# tips weekly#fsharp
Slawomir Moriakslamcode.hashnode.dev·Jan 2, 2024Resources to types with 'infer'Learn how you can make any string-based resource into a TypeScript type, and make the compiler do the hard work of checking the data for you. The magic of pattern matching in conditional types with the help of infer keyword is the topic for today. Ca...DiscussTypescript magicTypeScript
Oluwatobi Oluyedeyuzr.hashnode.dev·Dec 17, 2023Pattern Matching with JavaScript Regular Expressions: An IntroductionIn the intricate world of web development, the mastery of Regular Expressions opens the door to a world of powerful pattern matching. From validating user input to searching and manipulating strings, regular expressions serve as the linchpin for craf...DiscussJavaScript Regular ExpressionsJavaScript
Raineraineyang.hashnode.dev·Dec 10, 2023Rust Learning Note: Pattern MatchingThis blog is a summay of Chapter 2.6 and 2.7 of Rust Course (https://course.rs/) match expression The match expression follows the grammar below: match target { pattern1 => expression1, // returns expression 1 if target matches pattern1 pa...Discussrust match
Phakorn KiongProblog.phakorn.com·Aug 19, 2023Bringing Pattern Matching to GoIn the realm of software development, the concept of declarative code branching emerges as a powerful approach to managing complexity and conditional logic. Declarative branching shifts the focus from intricate, imperative if-else constructs to a mor...Discuss·10 likes·278 readsGo Language
Robertrobgev.hashnode.dev·Aug 1, 2023FeaturedPattern Matching in TypeScript: Tuples and RecordsIntro As mentioned in my previous article, while being on a vacation and work-free I decided to challenge myself with implementing pattern matching in TypeScript. While sitting in airports and planes and shuttles and between all the dancing workshops...Sandeep Panda and 4 others are discussing this5 people are discussing thisDiscuss·31 likes·458 readsFunctional Programming
Dom Jocubeitdjocubeit.hashnode.dev·Jul 13, 2023Exploring Dart 3.0's Powerful Pattern Matching and DestructuringDart is a versatile programming language and has introduced new features that enhance code expressiveness and development productivity. Among these features, pattern matching and destructuring stand out as powerful tools. In this article, we'll delve...Discuss·2 likes·203 readspattern-matching
Robertrobgev.hashnode.dev·May 30, 2023Implementing pattern matching in TypeScriptMotivation Recently, as my freelance contract expired and I have an upcoming vacation, I decided to use my free days to have some fun writing code and experimenting a bit. I got neck-deep into Function Programming again (I will have a series of posts...Discuss·21 likes·252 readsFunctional Programming
Unimke Adiechibidev.hashnode.dev·May 17, 2023App-wide Theming with Riverpod Generator.This article assumes you are familiar with Riverpod 2.0 and code generation (like Freezed) and want to use them in your app. For an in-depth explanation of Riverpod generators and the new Riverpod syntax, check out this and this by Andrea. What we'll...Discuss·11 likes·351 readsFlutter for MobileFlutter