• 18 Posts
  • 83 Comments
Joined 2 years ago
cake
Cake day: August 29th, 2023

help-circle


















  • I can see the point that too many program elements get too much color, but:

    Suggesting to not color keywords and use a single color for the names of top-level elements at the same time simply doesn’t mesh well.

    I’m coloring keywords exactly because I do not want to invent a new color for each individual top-level element name or require backtracking from the (in his proposal) highlighted name to the (in his proposal) non-highlighted keyword preceding it.

    Looking at the code example here I’d be open to have less things highlighted, but where to start? I guess parameter names, but apart from that?



  • soctoProgrammingWhat are you working on?
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    I’m working on Core whose primary design goal is to not invent any new features, but implement existing things correctly.

    The grammar is implemented with recursive-descent, one could define an equivalent EBNF, but I haven’t found the need to do so yet.








  • This is one of the rules I religiously follow in the design of my language.

    It’s one of the reasons

    • why I removed unary operators like ! and ~ and made -foo.bar parse as (-foo).bar;
    • why the order of elements in a type or function definition is the way it is; and
    • why I use an OOP-style value.member design instead of piping syntax like |>.