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

no argument function syntax #162

Open
cpcloud opened this issue Jul 30, 2015 · 2 comments
Open

no argument function syntax #162

cpcloud opened this issue Jul 30, 2015 · 2 comments

Comments

@cpcloud
Copy link
Member

cpcloud commented Jul 30, 2015

there doesn't appear to be a way to spell functions with no arguments, such as something like current_timestamp in some sql databases.

I tried () -> datetime and (void) -> datetime, and (null) -> datetime but none are valid datashapes. @mwiebe and @izaid might have a way to do this in libdynd. We should adopt their syntax if so.

cc @llllllllll

@mwiebe
Copy link
Contributor

mwiebe commented Jul 30, 2015

"() -> datetime" is what you're looking for, I believe.

@izaid
Copy link

izaid commented Jul 30, 2015

We have (greatly) extended the syntax for functions in libdynd. As @mwiebe said, this particular case is "() -> datetime".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants