Comments (3)
Current ideas:
U
is++
(Up) andD
is--
(Down). The alpha versions are likely to have lower precedence, allowing for expressions likeUx@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.
- The Unify command is not used much. It should be possible to replace its current functionality with a destructuring assignment syntax:
E
is**
(Exponentiation).- The Else branch of an if statement is not used much. The syntax will become
EL
instead ofE
.
- The Else branch of an if statement is not used much. The syntax will become
- Unary
M
andN
could be synonyms forMX
andMN
, 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.
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.
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)
- Add a bytecount to verbose mode
- Indexing a Scalar with a List of Patterns raises TypeError HOT 1
- Set I/O formatting options in the code, not with flags HOT 3
- Floating point numbers and scientific notation HOT 1
- All three-character variables are Tao of Pip
- Pip types are no longer hashable HOT 1
- Warn when using negative index with infinite Range HOT 1
- Don't allow underscores when doing base conversion
- Loss of precision when dividing large integers HOT 1
- Change precedence of unary functional operators HOT 2
- Empty program handled incorrectly HOT 2
- Add a REPL
- Make the pip() function more usable HOT 1
- Give info about operators in REPL
- Taking the repr of certain Blocks crashes the interpreter
- Handling types returned by function argument to `SK` HOT 1
- Unary version of `FU`
- Scan meta-operator
- Converting empty List to regex
- Flush stdout at end of execution HOT 1
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 pip.