Daniel Duan's blog

Unix File Permissions In Swift

Wrap file permissions from stat and chmod in an OptionSet in Swift.


🔗 Xiaodi's Notes On String Literals

In this awesome post, Xiaodi summarizes the design space for string literals with a focus on raw strings and custom dilimiters. Then he proceed to some conclusions in Swift’s potential design for raw string literals.

I had the feeling that this is one of those things I’d benefit from re-reading over and over in the future.


An Interpreter Without A Language

From the AST and scopes, come a simple interpreter. This intepreter can “execute” the fibonacci function AST and produce a correct results.