Hacker GitHub

← All repos

andreaferretti/patty

View on GitHub ↗ ★ 282 Nim

A pattern matching library for Nim

6 mentions on Hacker News by 4 people: 0 stories, 6 comments · first 2018-11-29 · latest 2023-10-01

Mentions per year 6 mentions · busiest year 2023 (2)
20082026
  1. …Currently I just use a library for sum type syntax on top of object variants: https://github.com/andreaferretti/patty
    comment by elcritch · 2023-10-01 · in Representing Heterogeneous Data
  2. You might like Patty. It makes case types more ergonomic: https://github.com/andreaferretti/patty
    comment by elcritch · 2023-08-01 · in Nim 2.0
  3. Libraries exist: https://github.com/haxscramper/nimtraits https://github.com/andreaferretti/patty https://github.com/alaviss/union Again we are not new to this problem and already offer alternatives.
  4. …matching. And of course there are plenty of alternatives available as well, the simplest one imo is https://github.com/andreaferretti/patty
    comment by planetis · 2021-03-11 · in Patten Matching in Nim
  5. …data types and pattern matching possible in Nim? Googling shows that there are libraries ( https://github.com/andreaferretti/patty for example) but basically amounts to deferring their implementation by way of the macro…
    comment by zinclozenge · 2019-01-09 · in Nim in 2018: A short recap
  6. …/nim-lang.org/docs/tut2.html#object-oriented-programm... There are some macros for easier generation: https://github.com/andreaferretti/patty#constructing-variant... There are pattern matching libs: pattern matching is implemented on top…
    comment by alehander42 · 2018-11-29 · in Advent of Nim