Re:Kotlin: A Language with a Bright Future
by lmm on Monday November 20, 2017 @11:34AM
(#15741117)
So what would the equivalent Kotlin look like?
I mean, I'm not going to defend whatever library you got that from, because I don't think EqualsGreaterThanColon or LessThanLessThanLessThan are very good names (whether you write them with letters or with symbols), but I don't think restricting the language actually makes it any better.
[ Parent
| on HN ]
Re:Kotlin: A Language with a Bright Future
by rbehrends on Monday November 20, 2017 @01:25PM
(#15741942)
Not the OP, but I would rethink my abstractions and modeling. Just as it's not always helpful to pull out ring theory and unique factorization domains to simply explain the fundamental theorem of arithmetic.
Part of designing a good abstraction is the interface communicating usage and intent, which should be tailored to the problem domain and the audience.
Yeah, it's hard to compare abstractions made for different audiences. Working in Scala I use applicatives all the time, so if you show me something and tell me it's an applicative then that's a lot more useful than giving me the details of the operations it has. But obviously to someone who isn't used to them talking about applicatives seems like it's just adding another layer of indirection.