Show HN: Sum Type and Type Matching in C

Generic and TypeSafe Programming In C. Contribute to brightprogrammer/MisraStdC development by creating an account on GitHub.
2 points by brightprogramer 134 days ago github.com 0 comments
Summary not yet generated for this article.

Original Text

Previous thread : https://news.ycombinator.com/item?id=45145176

Tried to implement a best effort pattern patching inspired solution in C. Destructuring not available, and nesting not directly available, but both can be achieved by opening more Match-When blocks. I guess we can say this is almost pattern matching in C.

Comments (0 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open