-
Notifications
You must be signed in to change notification settings - Fork 345
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
Use a different font and/or color for the syntactic markers #4132
Comments
The square brackets in the function signature indicate optional arguments. The ellipsis in the square brackets indicates that the function is variadic. See the function Agree the notation for function signatures is currently far from ideal, but it's consistent. |
@soerenwolfers - Sorry for the noise. Any chance of turning this "Issue" into an enhancement request for the documentation to use a different font and/or color for the syntactic markers? |
Sure, we can think about those. I adjusted the title/labels accordingly. |
I took a look at this issue again and I adjusted the related JSON function examples in a PR, so I'll close this. |
@szarnyasg wrote:
There's nothing quite like simplicity :-) The one thing that's not immediately clear, though, is that both functions can be called without any arguments. So, for your consideration...
|
https://duckdb.org/docs/data/json/creating_json.html gives the synopsis:
json_object([key, value, ...])
but the example lower down is:
SELECT json_object('duck', 42);
In fact, DuckDB v1.1.4-dev2210 does not accept the form given in the synopsis:
Note also:
The text was updated successfully, but these errors were encountered: