by FeepingCreature · 5y ago · 0 comments
Every C-like language should copy this idea, imo.
Would have absolutely loved it in Go, where over the course of time I had to build up dozens if not hundreds of validators on strings, maps, etc. Ended up resorting to storing them in `companyInitials-dataType` packages, EG `abcStrings.VerifyNameIsCJK()`, but the unified call syntax would be super tidy.
edit: The extension method page even links https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax