Giter Site home page Giter Site logo

Text type? about resp3 HOT 5 OPEN

coleifer avatar coleifer commented on August 18, 2024 1
Text type?

from resp3.

Comments (5)

AngusP avatar AngusP commented on August 18, 2024

I'm a little confused as to the exact use of the verbatim string. I'd assume it is for the same case you're describing, but clarification and perhaps standardisation on an encoding (i.e. UTF-8) would be useful to prevent weird issues. That being said, would it be OK to use non-printing characters (like unicode modifier chars) or terminal colour codes in a verbatim type reply?

from resp3.

AngusP avatar AngusP commented on August 18, 2024

Perhaps adding a third bin to the verbatim types (existing are mkd for Markdown and txt for text) wto be used for verbatim strings containing things lime images or other blobs, and require that mkd and txt be UTF-8 (or at least printable non-weirdness).

from resp3.

coleifer avatar coleifer commented on August 18, 2024

Bulk strings are binary safe, there's no need for that.

from resp3.

AngusP avatar AngusP commented on August 18, 2024

Verbatim Strings and Bulk Strings would be equivalent in that case but it could be handy having a semantic difference between the two, and leaving verbatim strings still open to arbitrary use (if txt and mkd were constrained to UTF-8 strings)

from resp3.

coleifer avatar coleifer commented on August 18, 2024

@antirez -- what do you think about a dedicated UTF8-encoded text type? For us Python users this would mean correct handling of str vs bytes, which would be very very nice.

from resp3.

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.