[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ast-users
Subject:    Re: [ast-users] Is this a bug?
From:       Cyrille Lefevre <cyrille.lefevre-lists () laposte ! net>
Date:       2010-11-10 23:25:59
Message-ID: 4CDB2A07.8070108 () laposte ! net
[Download RAW message or body]


Le 10/11/2010 20:32, Kyle McDonald a écrit :
> One more question -
> 
> are () legal (but optional?) on the function name with 'function name'?
> 
> IOW are these the same:
> 
> function foo
> {
>   true
> }
> 
> function foo()
> {
>   true
> }
> 
> I prefer the look of the latter, but what is more portable?

bash (wrong again) accept both, but ksh 88 or 93 only accept the first one.

Regards,

Cyrille Lefevre
-- 
mailto:Cyrille.Lefevre-lists@laposte.net



_______________________________________________
ast-users mailing list
ast-users@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic