News for hackers. Stuff that matters.
Re:The Two Factions of C++ by flohofwoe on Wednesday August 19, 2026 @07:47AM (#49360249)
> why would a C++ successor language use `fn main()` instead of using C/C++ style `int main()`

Apparently easier and faster parsing. Most modern language have arrived at the `fn bla(arg: ArgType): ResultType` form and I don't think they made that decision for purely aesthetical reasons.

Re:The Two Factions of C++ by vintagedave on Wednesday August 19, 2026 @07:55AM (#49360310)
Re:The Two Factions of C++ by lelanthran on Wednesday August 19, 2026 @09:00AM (#49361050)
> Most modern language have arrived at the `fn bla(arg: ArgType): ResultType` form and I don't think they made that decision for purely aesthetical reasons.

Not just modern, it's older than you think. Pascal function definition is `function bla(arg: ArgType): ResultType;`