Giter VIP home page Giter VIP logo

Comments (5)

pyroscope avatar pyroscope commented on May 23, 2024

See also 3b9b5e7

from rtorrent-ps.

chros73 avatar chros73 commented on May 23, 2024

I create 2 new methods that should work like math.* commands (accepting both string and number but not list), what shall I call the group?
data.* or chars.* or ... ?

  • exposing u8_chop : chars.chop (accepts max 3 params)
    • print=(chars.chop, "1234567", 3, 1) -> 12…
  • chars.pad (accepts max 4 param)
    • print=(chars.pad, "123", 5, "0", 1) -> 00123

These can be chained together as well:

  • print=(chars.pad, (chars.chop, "1234567", 3), 5, "x") -> 123xx

This group suppose to deal with "strings" and do some manipulation on them, but it behaves differently than the string.* group.
They can be used to display something on the UI or during logging (log.execute).

Thanks

Edit: I picked chars.*

from rtorrent-ps.

chros73 avatar chros73 commented on May 23, 2024

Here's the usage examples for the chars.* group, I extended your idea of logging.
Thanks for this as well!

from rtorrent-ps.

pyroscope avatar pyroscope commented on May 23, 2024

A string is a list of chars, I don't see the need for a new group name. That they implicitly convert values is not enough ‘different’ for me. Things are complicated enough, and adding a stink of PHP doesn't help. ;)

from rtorrent-ps.

chros73 avatar chros73 commented on May 23, 2024

:D :D :D You can rename them in ps, and I will rename it in ch if the setup project will reach 1.0 (I want to do couple of nontrivial things until then). That's why I asked for your opinion back then. It matters for me!

from rtorrent-ps.

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.