mokagio / Unless.swift

Unless this do that

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unless.swift

Unless this, do that

Unless.swift is a µ-framework, or rather an n-framework, that provide syntactic sugar to write code that reads like "unless this do that".

unless({ condition }) { 
  doSomething()
}

It's inspired by Ruby's unless operator:

unless condition do
  do_something
end

About

Unless this do that


Languages

Language:Swift 100.0%