mirror of
https://github.com/flynx/Course-JavaScript.git
synced 2025-10-29 19:10:09 +00:00
some refactorings...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f5329f8210
commit
3cc915c553
@ -665,8 +665,8 @@ var BOOTSTRAP = [
|
||||
':: . ( x -- ) [ drop ]',
|
||||
':: .. ( x -- ) [ print drop ]',
|
||||
'',
|
||||
':: isT ( a -- b ) [ not not true eq ]',
|
||||
':: isF ( a -- b ) [ not isT ]',
|
||||
':: true? ( a -- b ) [ not not true eq ]',
|
||||
':: false? ( a -- b ) [ not true? ]',
|
||||
'',
|
||||
'-- we already have gt and eq, now let\'s define the rest...',
|
||||
':: ne ( a b -- c ) [ eq not ]',
|
||||
@ -706,7 +706,7 @@ var BOOTSTRAP = [
|
||||
'-- [ cond ] [ A ] [ B ] if',
|
||||
'--',
|
||||
'-- A bit too "polish" in my view ;)',
|
||||
':: if ( cond a b -- ... ) [ rot rot exec isT tor and tor or exec ]',
|
||||
':: if ( cond a b -- ... ) [ rot rot exec true? tor and tor or exec ]',
|
||||
'',
|
||||
'-- Ternary operator, this can take two forms:',
|
||||
'-- COND ? A',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user