[Tinyos-devel] Safe TinyOS pointer annotations

Kevin Klues klueska at gmail.com
Sat Feb 23 15:47:56 PST 2008


I like the *_or_null annotation better.  Then again, I've always been
an advocate of long variable names in general if it suits the purpose.

Kevin

On Sat, Feb 23, 2008 at 11:40 AM, John Regehr <regehr at cs.utah.edu> wrote:
> > I'd recommend @one_or_null instead of @one_n - likewise for @count_n - since
>  > the latter form seems to suggest that there is some parameter 'n' involved.
>
>  Yeah I agree that @one_or_null is clearer and I'm fine with it.  The only
>  drawback is that the verbosity could get old (but maybe it will encourage
>  the design of null-pointer-free interfaces, which seem to be easier to
>  think about :).
>
>  Anyone else?
>
>  John
>
>
> _______________________________________________
>  Tinyos-devel mailing list
>  Tinyos-devel at millennium.berkeley.edu
>  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>



-- 
~Kevin


More information about the Tinyos-devel mailing list