Comments (4)
I'm fine with adding raw strings to the language eventually. But I'm questioning if this is the right time? Do we have concrete use cases for raw strings?
I tend to use them in unit tests if my code handles large blocks of text (that I want to copy in from somewhere). For smaller strings, I'm usually okay with escaping things by hand.
from numbat.
I think this might have come from a request I made in IRC. I wanted to use numbat to calculate the length of a string, but I couldn't do because the string contained {
and }
characters.
from numbat.
That was what made me think about the issue yeah, but @sharkdp is right that, at least for now, this isn't really important because there aren't any major concrete use cases for it at the moment.
from numbat.
I couldn't do because the string contained
{
and}
characters.
I remembered the conversation, but not this use case. Given that we don't have Python-style f"…"
strings for using formatters, it might be nice to have raw strings after all. I'd say it's okay to implement them now if they don't add too much complexity.
from numbat.
Related Issues (20)
- Bring back (and improve) "readable types"
- Print parameter names in `info <function>`
- 1000 - 20% HOT 4
- Add @example decorator
- assert_eq: Better error messages HOT 6
- Add inspect(…) function for debugging HOT 8
- Allow closing parens (and trailing comma?) in function calls to be on the next line
- Support for multi-line functions HOT 4
- Use the most appropriate unit to reduce the number of digits when displaying something HOT 4
- Markdown in `@description()` decorators HOT 3
- unit_of is unsound
- Update documentation
- Pretty-printing: do not show `forall` multiple times
- Improve startup time (regression) HOT 2
- Implicit multiplication with parens: improve error message
- JSON parse error in wasm version causes very long system error to be printed HOT 3
- Unexpected behavior of unit conversions inside functions HOT 4
- Why are we calling `FullSimplify` everywhere HOT 1
- Notepad/soulver-like interface for Numbat? HOT 10
- [Design] Multiline expression 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 numbat.