Skip to content

Feature: Improve syntax for defining future expressions #9

Closed
@tobiemh

Description

@tobiemh

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions