4 ms·
I really like the type::value pattern. It provides some attractive options for embedded languages. If python allowed fun x: query = sql ::
by m1sta_ 6y ago
I really like the type::value pattern. It provides some attractive options for embedded languages. If python allowed
fun x:
query = sql ::
select * from table
I'd be pretty happy.
- BerislavLopac 6y agoIt kind of does: class SQL(str): ... query = SQL(""" select * from table """)