exec
for windows has landed, but differentlyhttps://hackmd.io/@ysthakur/nu-spread
@ysthakur
Kubouch:
**kwargs
in python would be tricky as we have both positional and keyword arguments mixedSophia:
split chars
https://hackmd.io/@ysthakur/nu-spread#Example-3
Q: how to handle errrors if pattern doesn't match. strong assumptions about what the parser returns
...
used in existing ...rest
params
..
for match => should probably change at some point for consistency in a separate PR
..$var
can be confused with a range
Go with ...
for spread
Errors are behaving pretty much like exceptions (raise out if they are part of a pipeline, get caught by try
/catch
)
Could Errors be just a tagged version of a record
-> destructurable (opposite of error make
)
JT:
match $foo {
error { msg, start, end } => {
print $msg
}
}
record
in the closure args of the catch
blockValue::Error
which would immediately reraise taking it out of the argumenthas been on the backburner but slow and steady we will move forward
exec
for windowscargo
solve the problem for winthe issues which needs-core-team-attentionImage Not Showing Possible ReasonsLearn More →
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
NoteImage Not Showing Possible ReasonsLearn More →
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
to list all the PRs currently opened innushell/nushell
:gh pr list --json url,number,author,title | from json | each {|i| $"- [($i.number)]\(($i.url)\) ($i.title) \(@($i.author.login)\)" } | reverse | to text
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