Bubble Foundry

Posts tagged with: conditionals

Ruby-style trailing conditionals in Scala
Ruby code often has code with trailing conditionals, which can look pretty neat. person = Person.get(name) unless name.nil? (Note: I really don’t know Ruby, I just saw syntax like this and thought was cool.) So, of course I had to implement it in Scala: You get optional values: Pretty cool, no? I tried and failed […] Read more – ‘Ruby-style trailing conditionals in Scala’.