Re: vote on := for assignments and in expressions
Laurent Dube <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Organization | DEI |
| Message-ID | <[email protected]> |
Mark Hahn wrote: > Since using := for assignment everywhere was not a choice in the original > voting, I want to start a new vote on that issue. Please vote FOR or > AGAINST changing the symbol = to := for the assignment statement and > allowing it to be used in expressions also. I'm FOR changing the symbol = to := for the assignment statement. I'm FOR allowing it to be used in expressions also. It's not my style to use it, but the meaning will remain clear Now, check this out. How about function defs and function calls? Do we use ":=" for defaults? def func(x, y:=11, z:=12) # with default values What do we use for keyword-matched arguments in function calls? func(y = 1, z = 2, x = 3) or func(y:= 1, z:= 2, x:= 3) How is that not be interpreted as assigning a value to local variable y and then passing that value to the first argument x? Laurent Dube