Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion 'Crazy' new commands idea.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
qyloxe  
View profile  
 More options Oct 28 2010, 3:44 pm
From: qyloxe <qyl...@gmail.com>
Date: Thu, 28 Oct 2010 12:44:29 -0700 (PDT)
Local: Thurs, Oct 28 2010 3:44 pm
Subject: 'Crazy' new commands idea.
Some 'crazy' ideas. New commands in capital letters:

Conditionals:

IF operand_type_1 operand_1 operator operand_type_2 operand_2
THEN
   block
ELSE
   block

operand_type_1,operand_type_2 -> ["key","value","list"...]
operator -> ["=",">","<",">=","<=","<>","!=","in","not in",...]

block -> single command or:

BEGIN
   command
   command
   command
   ...
END

BEGINPROCEDURE proc_name args
ENDPROCEDURE

CALL proc_name args

====================
Example 1:

IF key mykey1 = value "xx"
THEN
BEGIN
   SET mykey2 "yy"
   INCR mykey3
END
ELSE
BEGIN
   SET mykey2 "zz"
   DECR mykey3
END

====================
Example 2:

BEGINPROCEDURE myswap key1 key2
   SET myswap_temp key1
   SET key1 key2
   SET key2 myswap_temp
   INCR myswap_cnt
ENDPROCEDURE

CALL myswap mykey1 mykey2
CALL myswap mykey2 mykey3

==============================

REDIS as a virtual machine - wow!

What you think?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.