Dutch.swift
For april fools day, I wanted to write a Swift library that allows you to write Swift code in Dutch. It's called Dutch.swift and it's available on GitHub. Unfortunately it didn't work out in the way I wanted it to, but I still wanted to share it with you.
There is a way to get the idea i had in mind to work, but it required me to write a transpiler which converted the dutch code to swift code. This was not what I had in mind, so I decided to not go that route.
I still want to share this with you:
import Dutch
let tekst: Tekst = "Hallo, Wereld!"
if true == waar {
print(tekst)
}
zolang(true) { // while(true), Unfortunatly this needs parentheses
print(tekst)
}
als(waar) { // if(waar), Unfortunatly this needs parentheses
print(tekst)
}
I hope you like it! If you have any questions, feel free to ask me on the socials.
๐ฆ @0xWDG ๐ mastodon.social/@0xWDG ๐ฆ @0xWDG ๐งต @0xWDG ๐ wesleydegroot.nl ๐ค Discord
Read more
- @ViewBuilder in Swift • 4 minutes reading time.
- SwiftLeeds 2024 (day 1) • 11 minutes reading time.
- Hacktoberfest 2024 • 4 minutes reading time.
Share
Share Bluesky Mastodon Twitter LinkedIn Facebook