You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to do something like a chain of function calls (fluent interface).
But because the flush does not start from the beginning of the line, it produces the wrong result:
get-key(key...)
result = get-string(key[0])
result += '--' + get-string(key[1]) if key[1] != null
result += '--' + get-string(key[2]) if key[2] != null
result
get-value(key)
if is-defined(get-string(key))
return get-definition(get-string(key))
error('Value is undefined: ' + key)
I'm just experimenting trying to make my styles more concise:
I'm trying to do something like a chain of function calls (fluent interface).
But because the
flush
does not start from the beginning of the line, it produces the wrong result:As you can see the output in reverse order:
So, what the hell? How can I fix this?
The text was updated successfully, but these errors were encountered: