Comments (2)
Good catch. Did some digging this is caused by the parser getting tripped up when parsing operators that can have zero arguments:
- head
- tail
- uniq
(There are already guards for this for fuse and shape)
from zed.
Verified in Zed commit f497079.
Repeating the user's original program, it now parses and produces the expected result regardless of its name.
$ zq -version
Version: v1.16.0-6-gf4970799
$ zq -z 'func headfunc(): ( 1 ) headfunc()'
1
Thanks @mattnibs!
from zed.
Related Issues (20)
- Can't successfully pass "this" as part of an array parameter to user-defined op HOT 2
- Something like jq's "debug" HOT 2
- Accessing the index of current array element within an "over" scope HOT 1
- "Strict mode" for Zed language
- search_replace function HOT 2
- Spread values from an array to become the multiple args to coalesce()
- Show filename when searching across multiple files with zq
- "this" as optional second argument in functions
- Dynamic field names in record expressions HOT 1
- Incorrect comparison result with union value HOT 1
- Most functions don't support unions
- Warn/error on "over ... with this"
- [SUGESTION] Syntax highlighting for HTML template literals HOT 1
- Nanosecond precision output with strftime
- Presenting times in non-UTC timezones
- Hung debug with larger input and head HOT 1
- Post-merge operator prevents debug on flowgraph branches
- "sort" causes Zed lake service crash
- Don't colorize redirected debug output
- nest_dotted function panics on non-record value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zed.