logoalt Hacker News

f311atoday at 5:54 AM1 replyview on HN

The code is so weird, people will have a hard time reading it when they need to check for correctness.

There are much better ways to write it in Rust: https://github.com/malisper/pgrust/blob/14ffab7d31a31e5ab667...


Replies

wavemodetoday at 6:08 AM

I mean, you've linked to a function performing md5 hashing. That's pretty much exactly what I would expect such code to look like.

Case in point: https://github.com/postgres/postgres/blob/master/src/common/...

show 1 reply