← Back to context

Comment by mjburgess

7 days ago

Things like that make grepping easier. And redundancy of syntax makes reading-without-mistake faster. The more you put on the page the lower the cognitive load, the more spare it has in it, the easier it is to search for increasingly refined contexts of use.

Agreed. It's tempting to make the tersest lang you can but in the end what matters is ease of reading.

For ex. parens-less calls (myfunc 42 "hello") are elegant but don't stand out and - for me - take more time to identify.

Also `fun foo(i:int)` is easier on the parser than C-style `void foo(int i)`

  • I prefer lack of "fun" and "fn", to me it is easier to parse C-style. :( This is one of the things (albeit minor) that put me off of C alternatives, I like to keep things as simple as possible, but I understand it has "macro" as well, so might as well have "fn", for the reasons already mentioned.

    That said, I will still try C3.

    • Also, `fn` is used to make type inference for lambdas syntactically simple. But I would lie if I said I haven’t been considering removing `fn` many times. But there are good reasons for keeping it, despite the break with C.

      9 replies →