<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br class="webkit-block-placeholder"></div><div>It seems that type checking in Erlang record is coming soon :)</div><div><br class="webkit-block-placeholder"></div><div>In Erlang R12B snapshot (file.hrl):</div><div><br class="webkit-block-placeholder"></div><div><div><font class="Apple-style-span" face="Monaco">-type(date() :: {pos_integer(), pos_integer(), pos_integer()}).</font></div><div><font class="Apple-style-span" face="Monaco">-type(time() :: {non_neg_integer(), non_neg_integer(), non_neg_integer()}).</font></div><div><font class="Apple-style-span" face="Monaco">-type(date_time() :: {date(), time()}).</font></div><div><font class="Apple-style-span" face="Monaco"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Monaco">%%--------------------------------------------------------------------------</font></div><div><font class="Apple-style-span" face="Monaco"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Monaco">-record(file_info,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="Monaco">  </font></span><font class="Apple-style-span" face="Monaco">{size   :: non_neg_integer(),</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="Monaco">  </font></span><font class="Apple-style-span" face="Monaco">% Size of file in bytes.</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="Monaco">     </font></span><font class="Apple-style-span" face="Monaco"> type   :: 'device' | 'directory' | 'other' | 'regular' | 'symlink',</font></div></div><div><font class="Apple-style-span" face="Monaco">...</font></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>I guess the intend is to use this new information in dialyzer.</div><div><br></div><div>Anyway, it looks nice :)</div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>-- </div><div>Mickaël Rémond</div><div> <a href="http://www.process-one.net/">http://www.process-one.net/</a></div><div><br class="webkit-block-placeholder"></div></div></span></div></div></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>