|
|
| version 1.4, 2015/10/26 00:41:41 | version 1.7, 2023/09/28 12:41:58 |
|---|---|
| Line 8 $string_methods[^reflection:methods[stri | Line 8 $string_methods[^reflection:methods[stri |
| } | } |
| $s[] | $s[] |
| $w[ ] | |
| $v[$void] | $v[$void] |
| Empty string vs void: | Empty string vs void: |
| Line 18 Json (void as null): ^json:string[$s;$.v | Line 19 Json (void as null): ^json:string[$s;$.v |
| Length: ^s.length[] vs ^v.length[] | Length: ^s.length[] vs ^v.length[] |
| Double: ^s.double(0) vs ^v.double(0) | Double: ^s.double(0) vs ^v.double(0) |
| Base64: "^s.base64[]" vs "^v.base64[]" | Base64: "^s.base64[]" vs "^v.base64[]" |
| Hash compatibility: "$s.key" "$v.key" | Hash compatibility: "$s.key" "$w.key" "$v.key" |
| More hash compatibility: "^b[^s.contains[key]]" "^b[^w.contains[key]]" "^b[^w.contains[key]]" | |
| Methods are not visible: "^show[$s.length]" "^show[$w.length]" "^show[$v.length]" | |
| Non-empty string not hash compatible: ^try-catch{ | Non-empty or whitespace string not hash compatible: ^try-catch{ |
| $s[string] | $s[string] |
| $s.key | $s.key |
| } | } |
| Absent method empty string error: ^try-catch{ | Absent method empty string error: ^try-catch{ |
| $s[string] | $s[] |
| ^s.something[] | ^s.something[] |
| } | } |
| Absent method void error: ^try-catch{ | |
| ^v.something[] | |
| } | |
| Absent method non-empty string error: ^try-catch{ | Absent method non-empty string error: ^try-catch{ |
| $s[] | $s[string] |
| ^s.something[] | ^s.something[] |
| } | } |
| ^string_methods.foreach[k;v]{ | ^string_methods.foreach[k;v]{ |
| ^if(!($v.$k is 'junction')){ | ^if(!^void_methods.contains[$k]){ |
| String method $k absent in void | String method $k absent in void |
| } | } |
| } | } |
| @b[v]{ | |
| ^if($v){true}{false} | |
| @show[v] | |
| $v.CLASS_NAME |