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)
- Type inference: follow-up tasks
- Lists are embarrassingly slow HOT 3
- Give `quadratic_equation` a `List<B/A>` return type.
- Generic structs
- Example from the syntax overview fails in 1.12.0 HOT 3
- `numbat-wasm/www/` has formatting issues
- Struct field access fails if expression type is not yet concrete HOT 4
- Add/Sub type classes for operator overloading HOT 1
- Represent DateTimes using structs
- Incorrect source code spans in error message
- Better type check error messages for expressions involving polymorphic functions
- Add json support to pass data to numbat structs HOT 4
- Add heat energy units therm and thermie HOT 1
- Newlines before closing ']' should be allowed in list expressions
- Omit fundamental constants in scientific unit conversions? HOT 4
- Support escape sequences in strings
- Add a 'run' link to all examples in the documenation
- Bring back (and improve) "readable types"
- Print parameter names in `info <function>`
- 1000 - 20% HOT 4
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.