Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The big problem with Swift for DSLs is that SwiftUI is essentially a special case in the language. Yes, you can build other DSLs with the facilities, but result builders are designed for SwiftUI’s needs specifically, where a more general hygenic-macro-based solution would be of more value generally. (Swift does not have macros of any sort).

The main issue with Swift as a general language is that the standard library is not broadly enough designed, and the language is very tied to the standard library. It’s hard to see Swift being used to write an OS kernel, or even a Linux kernel module, for example. Swift is an application language for Apple platforms, and it will remain so until someone puts effort into making it otherwise.

That said, the new regex facilities in Swift 6 make it a real contender for scripting tasks where you might otherwise consider using Ruby / Perl / Python. So there is progress.






Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: