Giter VIP home page Giter VIP logo

Comments (3)

dloscutoff avatar dloscutoff commented on June 9, 2024

Current ideas:

  • U is ++ (Up) and D is -- (Down). The alpha versions are likely to have lower precedence, allowing for expressions like Ux@a instead of ++(x@a).
    • The Unify command is not used much. It should be possible to replace its current functionality with a destructuring assignment syntax: UabcWx -> [abc]:x, which would only cost one byte more and would have the advantage of being an expression rather than a statement.
  • E is ** (Exponentiation).
    • The Else branch of an if statement is not used much. The syntax will become EL instead of E.
  • Unary M and N could be synonyms for MX and MN, respectively.

This still leaves H unassigned. One idea that comes to mind is Halve. Two objections: 1) Is this a common enough operation to be useful? 2) A Halve operator seems to want a Double operator to keep it company, but D is already spoken for. I suppose Double could be a two-letter operator like DB, though this doesn't save any bytes over just multiplying by 2.

from pip.

dloscutoff avatar dloscutoff commented on June 9, 2024

U, D, and E have been added in the latest commit. The Unify command is gone (destructuring assignments having been added in #8 ), and Else is now EL.

from pip.

dloscutoff avatar dloscutoff commented on June 9, 2024

On further reflection, Halve wasn't useful enough to warrant a single-character operator (it's now HV). Instead, H is a new Prefex operator (mnemonic: Head), and S (repurposed from the old Swap command) is Suffix. These can be used in place of @< and @> in certain situations, though their implementation and operator precedence are a bit different. Swap is now an operator, ::.

from pip.

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.