A '?' suffix for boolean methods would be fantastic.

On Sat, Nov 2, 2013 at 4:40 AM, Oren Ben-Kiki <o...@ben-kiki.org> wrote:
> I would love it if '?' was allowed at the end of any identifier, to make it
> natural to name boolean variables, methods, constants, etc. Having to say
> is_xxx is ugly IMO. A lint option ensuring this is only applied to boolean
> typed constructs could help reduce abuse, if this is seen as an issue.
>
> On Nov 2, 2013 8:02 AM, "Steve Klabnik" <st...@steveklabnik.com> wrote:
>>
>> Would a ruby-style ok?/ok work to replace is_ok/ok    ?
>> _______________________________________________
>> Rust-dev mailing list
>> Rust-dev@mozilla.org
>> https://mail.mozilla.org/listinfo/rust-dev
>
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>



-- 
Andrés Osinski
http://www.andresosinski.com.ar/
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to