@propensive can contextual handle parameterised validation? I have in mind something like:
```
val table = Table("fancy_table", "id", "name", "age") // well, you get the idea :D
sql(table)"select id, nmae from fancy_table" // or sql"..."(table)
```
-> compile time failure
Unfortunately the first syntax isn't supported by the compiler. It would be nice to import the `sql` StringContext from an object you construct, but this doesn't currently work. Though things I learned from the Magnolia API make me think it's possible to make it work.
-
-
I'll have a think, would be useful for some stuff we may have at some point at work... On other contextualised news, how do you get an interpolator to work in the REPL? I saw that working in the Sphere talk but can't get it to work locally (my fault!)
-
Aha! It was on /examples/ so compiled at load!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.