Swift is a bit too platform-specific for me, but perhaps this looks interesting to others ?
Via
http://mjtsai.com/blog/2016/11/06/scriptarian/
( I have learned to discount the charmingly predictable ‘over-lexicalisation’ perfomance (crippled | incompetent | garbage | broken) which inevitably shows up within minutes of any macOS scripting discussion )