aergo20
aergo20
latest yuescript version workaround (only index) ```moon template = { foo: "Hello", bar: "World", "!" } specialized = { index#: template, -- "fill" operator workaround (uses metatable __index) bar: "Bob"...
I think the `item[]=value` syntax (similar to PHP idiom) would be better in this case (or alias for `#=`). `#` already has many rules in Yue and can be confused...
Wow. nice! congrats for the great job. could this be changed or does it cause conflict? ```moon a.# = __index: tb mt = a.# -- TO a# = __index: tb...
the [first syntax](https://github.com/pigpigyyy/Yuescript/issues/41#issue-818820674) seemed more consistent to me. `#` + `:`, `#` + `.`, and `#` + `\` ```moon a = close#: => b = #:add c = t#.close d...
`.#: mt` and `#: mt` can be aliases
Better ```lua -- keys and metamethods: a = b: true, c#: true -- local a = setmetatable({b = true}, {__c = true}) -- only keys: a = b: true --...
I agree. My suggestion would just expand this idea with just a syntax. Would save a lot of code, but it would be more complex. My intention is to eliminate...
`[ ]` is comprehensive and clean. imho ```moonscript array []= item ```