obriencj / python-sibilant

A dialect of Lisp compiling to Python bytecode
GNU Lesser General Public License v3.0
7 stars 1 forks source link

f-string as a default built-in reader macro #221

Closed obriencj closed 4 years ago

obriencj commented 4 years ago

enable f-string markup

f"{foo}"  ::= (#str (format foo))
f"""{foo '04x} hi""" ::= (#str (format foo "04x") " hi")
obriencj commented 4 years ago

this can replace the #fmt operator as well. Might opt to leave both in place for use with macros though.