robb / Swim

A DSL for writing HTML in Swift
312 stars 9 forks source link

Define first-class struct for every tag #23

Closed robb closed 3 years ago

robb commented 3 years ago

This makes it easier to associate information with them, since functions don't have identity.

robb commented 3 years ago

@chriseidhof can you run this against your code base if you have a moment and see if it causes any problems?

chriseidhof commented 3 years ago

Can confirm that this compiles without any problems.

robb commented 3 years ago

Thanks a lot.