Page 3 of 3

Re: Should this work?

Posted: Sat Oct 31, 2009 11:34 pm
by Kaeru Gaman
ah, wonderful. thank you very much.

Re: Should this work?

Posted: Sun Nov 01, 2009 2:41 am
by Mistrel
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?

Posted: Sun Nov 01, 2009 11:45 am
by Fred
May be, but it will be much clearer like that.

Re: Should this work?

Posted: Sun Nov 01, 2009 1:14 pm
by nco2k
whoa.. thats some good news. thanks! :shock:

c ya,
nco2k

Re: Should this work?

Posted: Mon Jun 28, 2010 9:48 pm
by rudd68
Hello,
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?
Fred wrote:May be, but it will be much clearer like that.
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.

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
Logic expressions should be allowed in mathematical expressions.

Example:

Code: Select all

a = 4 + 3 * (b = c)
;
; if b = c then a = 7 else a = 4
A short keyword (e.g. LET or ALL) should make a multi assingnment possible.

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
Without "LET" keyword it would be clear also.

Greetings.