Changes between Version 4 and Version 5 of ExpressionTour
- Timestamp:
- 06/20/10 04:25:09 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExpressionTour
v4 v5 46 46 }}} 47 47 48 == Bitwise == 49 50 to-do (& | ^ << >> ~) 51 48 52 == Boolean == 49 53 … … 54 58 if obj.isActive, .doSomething 55 59 }}} 60 61 to-do (all, any, don't say ==true or ==false) 56 62 57 63 == Strings == … … 69 75 == Comparing Values == 70 76 71 to-do (<>, is & is not vs. == & <>, overriding .equals (and .getHashCode) and .compareTo)77 to-do (<>, is & is not vs. == & <>, 0<= i < 10, overriding .equals (and .getHashCode) and .compareTo) 72 78 73 79 == Collections == 74 80 75 to-do (list, array, set, dict, explicit creation, indexing, membership(in and not in for lists, arrays, sets, dict.keys, dict.values) )81 to-do (list, array, set, dict, explicit creation, indexing, .get, membership(in and not in for lists, arrays, sets, dict.keys, dict.values) ) 76 82 77 83 == Slicing == … … 82 88 83 89 to-do (inherits, implements, if-inherits, alternative is virtual method) 90 91 == Casting == 92 93 to-do (to, to?) 84 94 85 95 == If Expression == … … 95 105 to-do (nil, to ?, to !, coalesce ? and ?=, ! and !=) 96 106 107 == Method References == 108 109 to-do (ref obj.method) 110 111 == Expressions in Contracts == 112 113 to-do (old expr, a implies b, breakout to a method)