|
Re: issues with property terminal [message #538210 is a reply to message #538169] |
Sun, 06 June 2010 13:06   |
|
On 2010-06-06 02:55, Henrik Lindberg wrote:
> Either:
> $this.is.a.property$
>
> or
>
> ${this.is.a.property}
>
> I like the later, as it is more clear that the ${ } is syntax to
> reference the property, and it is a commonly used construct.
>
I agree. Let's use the latter. I belive that in a unix shell, you can
use both $foo and ${foo}. The former can be used when there is no
ambiguity such as the need to distinguish:
${foo}bar
from
$foobar
I'm not much in favor of that though. It's better to have one canonical
way to express property expansion.
- thomas
|
|
|
|
Re: issues with property terminal [message #608332 is a reply to message #538169] |
Sun, 06 June 2010 13:06  |
|
On 2010-06-06 02:55, Henrik Lindberg wrote:
> Either:
> $this.is.a.property$
>
> or
>
> ${this.is.a.property}
>
> I like the later, as it is more clear that the ${ } is syntax to
> reference the property, and it is a commonly used construct.
>
I agree. Let's use the latter. I belive that in a unix shell, you can
use both $foo and ${foo}. The former can be used when there is no
ambiguity such as the need to distinguish:
${foo}bar
from
$foobar
I'm not much in favor of that though. It's better to have one canonical
way to express property expansion.
- thomas
|
|
|
|
Powered by
FUDForum. Page generated in 0.02111 seconds