Comments (3)
The statement, "there is no requirement that definitions have to come before the parts of the script that call the definitions" used to be true but I've seen several instances where order matters. I'm not sure if that means the docs are wrong or if there's a bug in nushell.
from nushell.github.io.
I believe the statement holds for the given example as I would expect the script to error out otherwise.
However, the statement could of course not be true in general. I can't really tell as I'm 2 days into Nushell.
I should add that when I originally encountered this behavior, I also looked for duplicates in the main repository and found this recent issue that was indeed a bug but has been fixed since.
from nushell.github.io.
This isn't an order thing, but rather we no longer automatically print output of every line.
def greet [name] {
["hello" $name]
}
greet "world"
Should now be:
def greet [name] {
print ["hello" $name]
}
greet "world"
And similar with the second example.
from nushell.github.io.
Related Issues (20)
- Change Python shebang in Contributer's book chapter on plugins to be more portable HOT 2
- Rust example in plugins chapter of contributers book does not compile in recent versions of Nushell HOT 1
- Mention `!...` history shortcuts in "coming from..." pages HOT 8
- Documentation for `null` should mention `default`
- Dataframe expression explanations sould be more prominent HOT 1
- The contributing notes for the nu website is missing a style guide
- `from ini` doesn't work as documentation says HOT 4
- FR: Generate search URL HOT 1
- Add crumtrail to command pages.
- [doc] add example for "update/upsert" for powershell HOT 1
- lefthook does not work HOT 3
- Consider moving away from VuePress HOT 3
- Contributor book doesn't have sidebar to navigate HOT 6
- nushell.sh automatically uses http rather than https HOT 2
- Single page view of all docs/book? HOT 1
- Why I can not run `R.exe` in nushell? HOT 2
- Generate terminal output HOT 1
- Step value of range is not mentioned in document HOT 1
- A page on control flow HOT 1
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 nushell.github.io.