this post was submitted on 04 Aug 2024
50 points (96.3% liked)

Tech

435 readers
2 users here now

A community for high quality news and discussion around technological advancements and changes

Things that fit:

Things that don't fit

Community Wiki

founded 8 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] killingspark@feddit.org 1 points 2 months ago (1 children)

There is the project c2rust which is being used to transpile c projects to rust. I didn't find any mentions on restrictions in this regard but I obviously agree it's a complicated issue.

, which means it will not be able to cover exactly the same especially in some fringe hacky cases

I'm just not sure this is true. Maybe you and I just don't see that there is always an equivalent solution in rust macros even if it's going to be unconventional/unidiomatic use of rust macros?

[–] sukhmel@programming.dev 2 points 2 months ago

Maybe you and I just don't see that there is always an equivalent solution in rust macros even if it's going to be unconventional/unidiomatic use

Maybe so, but large part of where it will be impossible is reproducing bugs introduced by unsanitized macros in C /half joking