mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Correction on Yuescript syntax
This commit is contained in:
parent
be310832b3
commit
d27ea3eb90
1 changed files with 1 additions and 1 deletions
|
@ -9,6 +9,6 @@ I just discovered [Yuescript](https://yuescript.org/doc/), which is like MoonScr
|
|||
|
||||
I like features like pipelines (much cleaner than repeated assignment or nested parentheses in function calls) and compile-time macros. The sugar for multiple and destructuring assignment is handy.
|
||||
|
||||
I find the additional operators unnecessary, and not worth their cognitive overhead. The `?` operator was already used as sugar for a parameter-free function call. The `[]` operator could easily have been a function in a library instead.
|
||||
I find the additional operators unnecessary, and not worth their cognitive overhead. It re-uses some operators for different purposes, creating confusion. The `[]` operator could easily have been a function in a library instead.
|
||||
|
||||
One of the trade-offs for this much syntactic sugar is some syntactic ambiguity. An opinionated formatter could resolve some of this.
|
||||
|
|
Loading…
Reference in a new issue