News for hackers. Stuff that matters.
Re:Austral Programming Language by RussianCow on Thursday July 27, 2023 @04:39PM (#36899819)
With syntax highlighting being ubiquitous, does it really matter whether the keyword is "function" or "fn"? And at that point, why not make it terse instead of taking up more space and adding unnecessary noise?
Re:Austral Programming Language by stephenr on Thursday July 27, 2023 @05:22PM (#36900341)
If you're going to take that approach why have any keyword?

`foo(){}` is just as clear as `fn foo(){}`

Re:Austral Programming Language by fijiaarone on Thursday July 27, 2023 @08:36PM (#36901930)
A block is a namespace that has an entry point, and optionally a return value and arguments.

There is no need to distinguish between functions, modules classes, lambdas, or whatever.

Hence, no need to distinguish their start or ending with keywords, as long as you can determine their scope.

Brackets determine scope, and unlike indentation or words, that is all they are used for.