• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Kotlin in Action: DSLs in Kotlin for Android?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can the expressive power of DSLs(Domain Specific Languages) in Kotlin be extended for Android Development? What are some of the possible use-cases?
 
author
Posts: 149
5
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, there are quite a few applications of Kotlin DSLs for Android. For example, we at JetBrains have developed a DSL for expressing Android layouts: https://github.com/Kotlin/anko/wiki/Anko-Layouts
There are several DSLs used to express database queries, for example, Requery: https://github.com/requery/requery/wiki/Kotlin
I've also seen a DSL used for UI testing of Android applications, even though I'm not sure whether there's public English information about it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic