2 ms·
or you start doing monads instead, where p operates on a monad (aka, the Optional type). Unfortunately, this ends up propagating out and your entire code base
by chii 3y ago
or you start doing monads instead, where p operates on a monad (aka, the Optional type).
Unfortunately, this ends up propagating out and your entire code base needs to also do this. Tho i reckon it will make your code better in the future, for a short term/temporary pain converting/adding breaking changes etc.
- erik_seaberg 3y agoYeah, switching to Scala or Kotlin would be the shortest path to do that.