Coder Social home page Coder Social logo

Comments (3)

Anton-4 avatar Anton-4 commented on May 30, 2024 1

Hmm, the addition of snippet does make it clear we're not referring to a function named hello.
It also seems like the cost of verbosity is quite low, it's not like with a variable name for example.
I'd like to try it out with snippet for now.

from roc.

isaacvando avatar isaacvando commented on May 30, 2024

Could the syntax for referencing a snippet be file:main.roc:hello instead?

from roc.

michaelkpfeifer avatar michaelkpfeifer commented on May 30, 2024

The Roc formatter replaces

### start snippet hello

by

# ## start snipped hello

which means that every file using this feature is formatted incorrectly. (Compare failed test run https://github.com/roc-lang/roc/actions/runs/7562066467/job/20699431954.)

Assuming that there are good reasons why the Roc formatter replaces ### by # ## (and #-- by # --) , a simple way to solve this is to use ## instead of ### . But this will probably lead to other problems since ## seems to be used for documentation purposes.

I feel that # ## is not ideal since people would probably wonder why there is an additional space character. Maybe # -- ?

from roc.

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.