2 ms·
Yup, I like this point. Oils / YSH is kind of a mash-up between shell and Python: 1. shell-like commands - ls *.py 2. python-like expressions - 42 + a[i] + f
by chubot 3y ago
Yup, I like this point. Oils / YSH is kind of a mash-up between shell and Python:
1. shell-like commands - ls *.py
2. python-like expressions - 42 + a[i] + f(x, y)
So it would be nice to highlight them differently to help people learn the language. It's not always obvious where commands are valid and where expressions are.
https://www.oilshell.org/release/latest/doc/ysh-tour.html https://www.oilshell.org/release/latest/doc/ysh-tour.html
- ygra 3y agoSimilar in PowerShell, where this distinction of parsing modes is a frequent source of confusion