Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust doesn’t have the bit matching syntax, but we do have match generally.


It'd be interesting to explore something similar to the bitstring[1] library for Ocaml. Where should one start if exploring syntax extensions for Rust. I haven't looked into rust in a while now so i'm not sure how far one can get with macros these days.

[1] https://github.com/xguerin/bitstring


“Macros 1.2” is what you want to look up; it’s in FCP right now!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: