News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by beagle3 on Thursday May 28, 2020 @07:25AM (#23336039)
This is also the approach taken by Nim and D, and it is known as the UFCS (Uniform Function Call Syntax)[0], and I agree - it's the best of all worlds.

[0] https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax

Re:The use of `class` for things that should be simple free ... by vanderZwan on Thursday May 28, 2020 @07:26AM (#23336047)
Ah, I wondered where it originated. Thank you for that bit of info!
Re:The use of `class` for things that should be simple free ... by amw-zero on Thursday May 28, 2020 @09:15AM (#23336843)
I think Swift does this too?