Comments (1)
Thanks for the report! This isn't really about arrays, it's more about a hole in how frawk handles printing functions that type inference has inferred nothing about ("Null" values). The bug goes away if you do BEGIN { f(0); }
for example.
The issue here is that frawk monomorphizes functions: in this case it creates two copies of f
based on the initial call-site and the recursive call.
frawk isn't able to infer any type information about depth
in the first call, other than the fact that it is a scalar (indeed, you could pass it the empty string and it would produce the same output), but the recursive call always gets called with an int (depth+1), so we only get an error with depth 0.
The easiest fix I found was just to support "null" as a valid format argument type. Added your repro as a test case. Thanks again!
from frawk.
Related Issues (20)
- Arch build failure HOT 1
- Can't build on latest Arch Linux HOT 3
- support for parquet files HOT 3
- Not issue - but a large file performance stat HOT 4
- Plans for a new release? Last release was 1.5 years ago. HOT 5
- error[E0554]: `#![feature]` may not be used on the stable release channel
- frawk is 3 times slower than mawk when reading/writing to piped commands opened by the awk process. HOT 6
- Is AOT compilation supported/planned? HOT 2
- CSV/TSV convenience variables HOT 1
- Windows / cranelift: misaligned pointer dereference HOT 4
- close(filehandle) is not executed. HOT 3
- Evaluate Profile-Guided Optimization (PGO) and LLVM BOLT HOT 6
- Panic when there are unused string maps and function calls HOT 1
- Checking a csv header unexpectedly adds it to FI HOT 1
- Continue does not jump to correct point in loop
- ENVIRON variable support?
- Windows supported? HOT 1
- error[E0635]: unknown feature `stdsimd`
- Field assignment doesn't work in CSV mode HOT 2
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 frawk.