0.75
--ignore
semantics and the do
+ complete
weirdness.Smooth sailing apart from winget
release_pkg.nu
script is misbehaving
Darren reached out to Justin who wrote this script
nu
Auto-trimming issue:
> open foo.nu
def main [x] { print $x }
> nu foo.nu '(^ls)'
...prints native ls output
Danger zone: regular expressions look like subexpressions (that start by executing commands)
e.g. (hello|world)
BobHy: working on the error handling of syntax errors through the parser.
Bare string handling happens in many different places and tracking down errors there is really hard.
Also challenges in assigning types vs allowing numbers in command names (or possibly bare words) e.g. 7z
Current state: we have type directed parsing with a large range of edge cases that have to be tracked through multiple stages (also duplication in the typechecking)
Big Problem: we are very context-sensitive and creating grammars and syntax plugins is hard or near impossible to get right.
Can we be more local to really constrain us in a helpful way.
Going back to the issue:
can we make the parser dumber in such situations? Ensure it remains a string (with quotes or maybe as an explicit nu
command that knowns about types)
We are probably never able to fully solve the risk that a non-nu shell will strip quotes.
Can we declare best practices that are easy to remember for users.
And make it as seemless as possible from nushell.
Jakub can we filter based on what is currently "constevalable" i.e. basically literals
See discord discussion with broot
(also all the environment managers :P)
https://discord.com/channels/601130461678272522/759901889978040331/1070257365783433217
Different behavior between in the REPL and inside of scripts (REPL effectively allows modification of engine state parts that are considered constant in a script)
Jakub raises the pitchforks against eval
Can we have eval lite?
do
/complete
complicationsproblem our pipelinedata is not fully compatible with the existing POSIX model of STDOUT
/STDERR
and exit codes for error handling
Piping to complete
is weird magic
do
has ignore options for "all errors"/"program errors (external)"/"shell errors"
try
catch
is still around
https://github.com/nushell/nushell/discussions/7899#discussioncomment-4843817
Test: does a change make writing a one-liner easier or harder
surrounding a pipeline stage with try
/catch
after you realize something could fail, feels fingertwisting
Jakub: can we have some syntax constructs that don't require wrapping with {}
all the time
JT: keep the spirit of the ls | where size > 10MB
base example
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing