Comments (3)
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.
Could the syntax for referencing a snippet be file:main.roc:hello
instead?
from roc.
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)
- Dead link to LogFormatter.roc in abilities.md HOT 1
- Abilities build error when importing module
- Add HTML page titles and descriptions for roc-lang.org/examples and everything under it. HOT 2
- "connection to server is erroring. Header must provide a Content-Length property” errors in VS Code HOT 6
- library 'System' not found on macOS HOT 1
- Use Inspect to print repl output HOT 1
- Default value fields don't type check for closed records
- Encode.EncoderFormatting and DecoderFormatting do not implement dict HOT 2
- REPL mangles string output on long strings.
- Confusing rules on recursive types
- Consider switching to tabs for indentation HOT 2
- Add function `catch : Result ok err, (err -> a), (ok -> a) -> a` to standard library. HOT 4
- Unhelpful error message for function annotation separated from definition HOT 3
- Newline between type annotation and implementation should "just work" HOT 2
- move everything in getting_started folder to website
- Support ! in pipeline HOT 5
- Invalid "File Not Found" Error HOT 3
- Use yellow underline in warnings HOT 1
- "An internal compiler expectation was broken" when changing the .roc part of a platform
- An internal compiler expectation was broken HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roc.