2 ms·
For my first go project, I decided to emulate Perl's popular Params::Validate library: https://github.com/joslinm/validate https://github.com/joslinm/validate
by joslin01 12y ago
For my first go project, I decided to emulate Perl's popular Params::Validate library: https://github.com/joslinm/validate https://github.com/joslinm/validate
Honestly though, I got sick of go and sick of writing the library. I'm not much of a fanboy of anything, but ya generics. They woulda been nice. I operated on the blank interface type a lot, and it's honestly just annoying doing all those case statements checking what type it is when I coulda just wrote a polymorphic method for the types I support. I always read on here though that you gotta adapt to the go style.. so maybe there's some more elegant way to go about it than I was, but meh, not worth diving into for me personally.
Now I'm writing my first Scala library and I looove Scala! I'm taking this library very seriously and expect to have a Show HN within a month or two.