News for hackers. Stuff that matters.
Re:Moonbit: The fast, compact and user friendly language for... by Lerc on Saturday August 19, 2023 @06:37AM (#37187367)
I couldn't see any reference to default parameters. Are they a thing?

I would quite like the ability to have something like

func makeBox(width: Int = 100, height: Int = width) -> BoxThing

everything else I've seen, I like the look of. One of my litmus tests for languages is to have the ability to make decent Vector types, tuples and operator overloading should perform that function nicely.

Re:Moonbit: The fast, compact and user friendly language for... by hongbo_zhang on Saturday August 19, 2023 @06:41AM (#37187389)
`default parameters` and some local features will be elaborated later on. We make the big(non local) features first and add various nice sugars step by step.