I haven't really started on ErlyWeb yet, I'm sort of feeding on information from tutorials and such.
Here's the blog post I'm currenly looking at: http://progexpr.blogspot.com/2006/12/erlyweb-blog-tutorial.html The tutorial has a a entry model that has a value field. However, the author had to build a helper to handle returned values: ... helpers:value(entries:title(Entry)) ... -module(helpers). -export([value/1]). value(Val) -> case Val of undefined -> ""; _ -> Val end. May be we could add hints as well as the desired "default" values for field accessors. Something like this: entries:title(Entry, as_string) %% meaning binary entries:title(Entry, as_string, <<>>) %% returning an empty binary when the field is NULL/undefined entries:comment_count(Entry, as_integer) etc. Or something to this effect... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "erlyweb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en -~----------~----~----~----~------~----~------~--~---
