Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Improve syntax for defining future expressions #9

Closed
2 tasks done
tobiemh opened this issue Jul 23, 2022 · 0 comments
Closed
2 tasks done

Feature: Improve syntax for defining future expressions #9

tobiemh opened this issue Jul 23, 2022 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@tobiemh
Copy link
Member

tobiemh commented Jul 23, 2022

Is your feature request related to a problem?

The syntax for defining an embedded JavaScript function is a little obtuse and obscure.

CREATE event SET start_time = fn::future -> {
    time::now() + 1w
};

Describe the solution

We could simplify this and make the syntax similar to the casting expressions...

CREATE event SET start_time = <future> {
    time::now() + 1w
};

Alternative methods

No other alternatives for this syntax improvement.

SurrealDB version

surreal 1.0.0-beta.2 for macos on aarch64

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tobiemh tobiemh self-assigned this Jul 23, 2022
@tobiemh tobiemh added the feature New feature or request label Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant