3 ms·
Yes, although return u.Id == 0 would be even more idiomatic :)
by Jabbles 13y ago
Yes, although
return u.Id == 0
would be even more idiomatic :)
- carbocation 13y agoHeh, true. Guest() exists because: (1) the html/templates are very limited in terms of in-template logic; and (2) I wasn't initially sure that u.Id == 0 would be the defining feature that determines that someone is a guest. So far, it seems to work well enough.