My wishes about NEW-RPL
|
10-01-2016, 02:11 PM
(This post was last modified: 10-03-2016 01:42 PM by compsystems.)
Post: #10
|
|||
|
|||
RE: My wishes about NEW-RPL
9: Super idea LISP language (prefix notation with list processing)
Use optional brackets () for operators and functions as dynamic arity By default, the sum binary operator (+) only requires two arguments x y + returns 'x+y' x y z + returns x 'y+z' using parentheses (x y z) + returns 'x+y+z' this is equivalent to using other commands and delimiters {x y z} ∑LIST returns 'x+y+z' It implies that the type of data (x, y) obligatorily requires the comma separator is a tuple Another example (1 2 3) (x y z) + * returns ( 'x+y+z' '2*(x+y+z)' '3*(x+y+z)' ) equivalent to {1 2 3 } {x y z} ∑LIST * returns { 'x+y+z' '2*(x+y+z)' '3*(x+y+z)' } great idea? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)