Posts
-
3/3 Writing scripts in Swift language
This third and final part of the series is the most interesting one yet — my take. It involves transferring the source code, almost as is, from the script to the library.
-
2/3 Writing scripts in Swift language
First part of this series introduced how scripts can be written in Apple’s Swift programming language while also having referenced a library of our own.
sayHello.swiftscript was implemented by calling a public field,abc.text, located in this library. -
1/3 Writing scripts in Swift language
I write bash scripts to automate things. I was writing scripts in java using BeanShell and now I am using java 11’s JEP 330 feature of doing pretty much the same; the aim is to start with a small piece of code that, as it grows larger and more complex, it can change into a full fledged application program or library, at zero translation costs.