MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/3k6qi8/pep_498_approved/cuvfn7i
r/Python • u/fishburne • Sep 09 '15
324 comments sorted by
View all comments
Show parent comments
0
well yes, but now it will be even more convenient and so it will happen even more
0 u/flying-sheep Sep 09 '15 would be a case for tagged templates like in ES2105:class SQLQuery { ... exec() { ... } } function SQL(strings, ...values) { values = SQLEscape(values) return new SQLQuery(...) } let query = SQL`from foo select ${bar}` query.exec() 1 u/[deleted] Sep 11 '15 is it what you envision for your SQL code ?
would be a case for tagged templates like in ES2105:
class SQLQuery { ... exec() { ... } } function SQL(strings, ...values) { values = SQLEscape(values) return new SQLQuery(...) } let query = SQL`from foo select ${bar}` query.exec()
1 u/[deleted] Sep 11 '15 is it what you envision for your SQL code ?
1
is it what you envision for your SQL code ?
0
u/stevenjd Sep 09 '15
well yes, but now it will be even more convenient and so it will happen even more