Brian Weinreich Brian Weinreich - 1 month ago 12
Swift Question

Can you use Swift as a web programming language?

Could you technically use Swift as a programming language for building a website / web app?




Update: Looks like a lot of people are working on this.






Official support from Apple: https://swift.org/server-apis/

Answer

Theoretically, any program that can output plain text can be used for CGI (Common Gateway Interface), that includes Swift. So, yes, you can use it for web programming. But there is no extra facilities as in PHP or EJB/JSP to make it easier for you. May be you can start making these facilities by yourself and be the first one to do so.