-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Hi there :)
As of now, there is no proper explaination to the initial code example in the docs.
https://github.com/IppClub/YueScript/tree/main/doc/docs/doc#an-overview-of-yuescript
Looking up 'object literals' in the docs, (with ctrl+f) yields no results.
I suggest to add the following text:
In Yuescript, object literals are a syntax for defining Lua tables (objects/dictionaries) with a more expressive and concise style. The
*symbol is used to denote list elements or multiple entries within a table.
Also the pipes are not explained at all.
I didn't send a PR, since I wanted to ask permission, to rearrange the docs a bit too, before I do.
Now, a lot of the very basic stuff, like importing, is fairly far down, while arguably one of the most difficult features is very much on the top.
A beginner should start with imports, and not macros ;)
Do you agree, then I send you a PR