Giter Club home page Giter Club logo

Comments (11)

joefitzgerald avatar joefitzgerald commented on August 22, 2024

👍 Where's the PR @drnic?

from language-go.

drnic avatar drnic commented on August 22, 2024

Want to know if it's ok or if authors have some overriding preference.

On Sat, Apr 26, 2014 at 2:35 PM, Joe Fitzgerald [email protected]
wrote:

👍 Where's the PR @drnic?

Reply to this email directly or view it on GitHub:
#16 (comment)

from language-go.

nathansobo avatar nathansobo commented on August 22, 2024

I'm fine trusting interested Go users on this one.

from language-go.

joefitzgerald avatar joefitzgerald commented on August 22, 2024

@drnic Pull request to 🚀 please – this is bugging me also.

from language-go.

joefitzgerald avatar joefitzgerald commented on August 22, 2024

Further references supporting the desire to prefer // over /* ... */:

In summary, it the vast majority of your comments are likely to be line-style. Block-style comments may occasionally be seen in package comments, but even then only in non-trivial packages (likely with examples).

Consequently, // would be preferable as it is most commonly used, and it would be nice if we had another keyboard shortcut for /* ... */?

from language-go.

drnic avatar drnic commented on August 22, 2024

@nathansobo I'm looking across a couple of packages - not sure what it is that defines the comment type for Cmd+/ - can you point me to some examples?

from language-go.

joefitzgerald avatar joefitzgerald commented on August 22, 2024

@drnic @nathansobo https://github.com/atom/language-go/blob/master/grammars/go.cson#L300-L324?

from language-go.

joefitzgerald avatar joefitzgerald commented on August 22, 2024

@drnic @nathansobo plus this: https://github.com/atom/language-go/blob/master/grammars/go.cson#L11-L15 ?

from language-go.

drnic avatar drnic commented on August 22, 2024

I think that's just defining that /* ... */ is a valid multi-level comment
syntax. Not that Cmd+/ toggles comment.

On Mon, Apr 28, 2014 at 9:50 AM, Joe Fitzgerald [email protected]:

@drnic https://github.com/drnic @nathansobohttps://github.com/nathansobo
https://github.com/atom/language-go/blob/master/grammars/go.cson#L300-L324
?


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-41582914
.

Dr Nic Williams
Stark & Wayne LLC - consultancy for Cloud Foundry users
http://drnicwilliams.com
http://starkandwayne.com
cell +1 (415) 860-2185
twitter @drnic

from language-go.

joefitzgerald avatar joefitzgerald commented on August 22, 2024

When you comment the editor wraps the text in <span class="comment block go">...</>. https://github.com/atom/language-go/blob/master/grammars/go.cson#L15 Defines comment.block.empty.go. https://github.com/atom/language-go/blob/master/grammars/go.cson#L308 defines comment.block.go.

from language-go.

joefitzgerald avatar joefitzgerald commented on August 22, 2024

@drnic Looks like scoped-properties = deliverance: https://github.com/atom/language-yaml/blob/master/scoped-properties/language-yaml.cson#L3

from language-go.

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.