Re:Functional programming is not popular because it is weird...
by sk0g on Tuesday September 14, 2021 @01:43AM
(#28520680)
That sounds amazing, but I wonder if it could get unwieldy as well.
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.
Re:Functional programming is not popular because it is weird...
by asdasdaergwerh on Tuesday September 14, 2021 @02:08AM
(#28520876)
Re:Functional programming is not popular because it is weird...
by FeepingCreature on Tuesday September 14, 2021 @02:42AM
(#28521147)
Yep exactly, but without requiring monkeypatching or operator hacks. Basically sorta like what C# does.
edit: The extension method page even links https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax
Every C-like language should copy this idea, imo.