Git Product home page Git Product logo

Comments (6)

grantjenks avatar grantjenks commented on August 18, 2024

In this case, I do prefer the triple single quotes. The benefits are ease of typing and consistency.

from blue.

warsaw avatar warsaw commented on August 18, 2024

It's funny; I don't know why but I always use TQDQs in these cases, but I'm okay that blue makes this transformation.

from blue.

zvezdan avatar zvezdan commented on August 18, 2024

@grantjenks Here are my 2 cents.

I love that blue has changed all the strings back into single quotes.
I do not like that it changed triple-quoted strings into '''string'''.
I believe that more widespread practice is to use double quotes for triple-quoted strings, even among people who use single quotes for strings. Thus """string"""

I hope we can tweak blue to do that.
Can we please reopen and reconsider this issue.

from blue.

grantjenks avatar grantjenks commented on August 18, 2024

Hi @zvezdan , I'm happy to reopen and reconsider.

Maybe we can do a quick analysis to see how prevalent """ is vs. ''' for non-docstrings.

But since @warsaw was similarly bugged when he first saw it, it's probably worth fixing. I don't have a strong opinion here. The ''' behavior was just easier in the code.

from blue.

warsaw avatar warsaw commented on August 18, 2024

I created a totally informal Twitter poll although TBH, this is the first Twitter poll I created so I'm not sure if I did it right 😄!

from blue.

warsaw avatar warsaw commented on August 18, 2024
I use double quote TQS!  77.9%
I use single quote TQS!  22.1%
68 votes·Final results

from blue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.