jmeaster30 / vore

VerbOse Regular Expressions - Regular Expression Engine with Verbose English-like Syntax
MIT License
1 stars 0 forks source link

optional 'begin' when creating a transform #70

Closed jmeaster30 closed 1 year ago

jmeaster30 commented 1 year ago

currently the syntax is:

set foo to transform
    return "bar"
end

which is nice and I want to keep that but I feel the following syntax also makes sense:

set foo to transform
begin
    return "bar"
end

The first looks a lot cleaner but the pattern body starts with 'begin' so it would make sense to allow both

jmeaster30 commented 1 year ago

This could be for anything with blocks but haven't run into any other cases where it feels off

jmeaster30 commented 1 year ago

Added for functions