yoavlavi

joined 1 year ago
[–] [email protected] 5 points 1 year ago

Quickly creating or editing objects. The main target would be editor extensions, image a snippet that expands to an object on tab for instance

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

It's more readable and maintainable than ECMAScript regular expressions, which it compiles into

[–] [email protected] 9 points 1 year ago* (last edited 1 year ago) (3 children)

I wouldn't consider Melody a new flavour of regex as it compiles to ECMAScript regular expressions.

I'd consider being more verbose than regular expressions as a great thing for what this project aims to do, regular expressions are very write optimized which is the wrong (IMO) tradeoff to make in a shared codebase (or even your personal code that's more than a few days old) where code is read much more often.

[–] [email protected] 8 points 1 year ago

Awesome idea, will definitely take it into consideration when that feature is available. Melody actually has a VSCode extension with highlighting and snippets, could be added to that

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

That's not supported yet but is planned (see the "reverse compiler" feature in the README)