lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



> What about using something like the "here file" syntax from Unix?
> --__ARBITRARY_IDENTIFIER__
>   blah
>   this is a long comment
>   blah
> __ARBITRARY_IDENTIFIER__
>
> [[__ARBITRARY_IDENTIFIER__
>   blah
> this is a long string
> blah
>__ARBITRARY_IDENTIFIER__

I'm with you. It could be one more option.
PHP uses `heredoc´ this way:

$var = <<<IDENTIFIER
anything you want here
IDENTIFIER;

ref: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc

Of course it only handles strings, but '--<<<' would be acceptable.

Maybe Brazilian keyboards are different

It is not 'that' different -- well, not my ABNT2 at least ;)

Before I get slammed... I know that /* can certainly be used in C/C++ code. Just not the latter, */

It is not common as '[[' and ']]' is. So, it would be another option.


regards