Should this work?
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: Should this work?
Is it necessary to have the Boolean keyword? Wouldn't just surrounding an assignment operation be enough to evaluate it as an expression?
Re: Should this work?
May be, but it will be much clearer like that.
Re: Should this work?
whoa.. thats some good news. thanks!
c ya,
nco2k

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Re: Should this work?
Hello,
Logic / boolean expressions shouldn't have any keyword.
At ambiguous expressions I want a mainly logical interpretation opposite an assignment interpretation.
Example:
Logic expressions should be allowed in mathematical expressions.
Example:
A short keyword (e.g. LET or ALL) should make a multi assingnment possible.
Example:
Without "LET" keyword it would be clear also.
Greetings.
Mistrel wrote:Is it necessary to have the Boolean keyword? Wouldn't just surrounding an assignment operation be enough to evaluate it as an expression?
I think no. If you have far indented source code, a Keyword (e.g. Boolean) moves the expression to the right out of the visible part of the editor window. The source code is worse readable through this.Fred wrote:May be, but it will be much clearer like that.
Logic / boolean expressions shouldn't have any keyword.
At ambiguous expressions I want a mainly logical interpretation opposite an assignment interpretation.
Example:
Code: Select all
a = b = c
;
; if b = c then a = #True else a = #False
Example:
Code: Select all
a = 4 + 3 * (b = c)
;
; if b = c then a = 7 else a = 4
Example:
Code: Select all
LET a, b, c, d, e = x * 10
;
; a = x * 10 : b = x * 10 : c = x * 10 : d = x * 10 : e = x * 10
LET a, b, c, d, e = x = y
;
; if x = y then a, b, c, d, e are #True else a, b, c, d, e are #False
Greetings.