this post was submitted on 16 Jul 2023
26 points (100.0% liked)

Rust

6025 readers
2 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
top 3 comments
sorted by: hot top controversial new old
[–] zygo_histo_morpheus 4 points 1 year ago

To me the main advantage would be that it makes regexes more readable, not more writable. Integrating melody in to a project seems like it would add more indirection which would make it more inconvenient to read. Feels like this would be more useful as a rust proc macro for example so that you can actually have it alongside your code in a convenient way rather than have it compile to ES6 regexes.

[–] [email protected] 2 points 1 year ago (1 children)

This is neat... will have to try it out next time I have a need.

I have to admit though, since ChatGPT came along... making regex has been infinity easier. Game changer.

[–] zygo_histo_morpheus 1 points 1 year ago

Would be nice for GPT to spit out melody code so it's easier to verify it. I assume that there isn't enough training data for it to work well though.