Wesley de Groot's Blog
Dutch.swift

Back

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

Share


Share Bluesky Mastodon Twitter LinkedIn Facebook
x-twitter mastodon github linkedin discord threads instagram whatsapp bluesky square-rss sitemap