Re: internationalization issues

On 24 October 2015 at 15:33, elf Pavlik <perpetual-tripper@wwelves.org>
wrote:

> On 10/23/2015 07:06 PM, Aaron Parecki wrote:
> > It doesn't cause any problems *parsing*, but it means you can't use
> object
> > notation in most languages.
> >
> > $foo->@context is not valid syntax in PHP or nearly any language I can
> > think of. It limits the use to array/hash notation, like $foo['@context']
> > in PHP.
>
> In javascript one can't use object notation with many microformats
> properties because of '-'
>
> post.like-of
>
> this will throw an error, so one also needs to use array/hash notation
> post["like-of"]
>
> same applies to *all* 'prefixed' extensions like p3k-* etc.
>
>
That's not true at all.  Instead of using the [ syntax for arrays use the {
syntax for objects.

http://stackoverflow.com/questions/1147937/php-curly-brace-syntax-for-member-variable

Received on Saturday, 24 October 2015 13:54:49 UTC