ctietze,
@ctietze@mastodon.social avatar

you know what's cool about #Ruby to write a custom #DSL that you can't do with Swift?

The dynamic nature of the language allows you to write anything in a DSL block, and pass it as a message (read: potential method call) to the DSL builder.

But the logic can be encapsulated in a module/class/whatever.

In #Swift, with a nesting of CustomNamespace.Thingie, you can never get rid of the CustomNamespace prefix to reference Thingie.

kaybutter,
@kaybutter@mastodon.social avatar

@ctietze oh yes. Kotlin has that too. But not by being super dynamic but basically by specifying the “this” context of a block.
Something I really miss in swift when building DSLs.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • ruby
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • JUstTest
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines