Hacker GitHub

← All repos

naasking/libsum

View on GitHub ↗ ★ 12 C

Automatically exported from code.google.com/p/libsum

4 mentions on Hacker News by 1 person: 0 stories, 4 comments · first 2016-07-19 · latest 2024-05-09

Mentions per year 4 mentions · busiest year 2016 (1)
20082026
  1. …I think libsum is a good intro if you want to see how algebraic data types work underneath. [1] https://github.com/naasking/libsum
    comment by naasking · 2024-05-09 · in Algebraic Data Types for C99
  2. …y) printf("foo_two: %d\n", y->d); MATCHANY fprintf(stderr, "No such case!"); exit(1); } } [1] https://github.com/naasking/libsum
    comment by naasking · 2021-02-04 · in Datatype99: C99 with Sum Types, v0.1.0
  3. …a long time ago just for sum types, so it's a little more limited but works for C89 or later IIRC: https://github.com/naasking/libsum
  4. …C [1]. With some fancier variable macros + C11, you can even make closures in C viable [2]. [1] https://github.com/naasking/libsum [2] Incomplete, but both curried and uncurried closures are possible: https://github.com/naasking/cclosures
    comment by naasking · 2016-07-19 · in Functional programming in C (2013)