News for hackers. Stuff that matters.
Re:“Coding is basically just ifs and for loops.” by erik_seaberg on Saturday December 04, 2021 @11:05PM (#29446610)
Kotlin does but sadly Java’s Optional<T> has no syntactic sugar, so it ends up looking like

  Optional.ofNullable(user).map(User::getUsername).map(name -> name.contains(searchString))

There are no comments on this comment yet.