Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Yet another" is not my main worry

The concept of prefixes itself feels a little deviant from readable code that is close to human language -- which is the spirit of Python



Additionally, it will probably be confusing that it is called a t-string but it is actually a constructor for a Template object and not string at all. I would rather see a new special term `template` than this.


The single letter f or t does make it unnatural to read, but if it were sql"..." or html"...", I think that would help with that.


Should have been a keyword.

    a = template "foo {bar}"
As should raw and format.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: