|
|
|
|
|
by mamcx
2437 days ago
|
|
Contracts are interesting but I think to make it usefull 1) are ON on release! and 2) Become part of the docs. One example: fun date(y:i32, m:i32, d:i32)
{... code ...}
This scream for more context (and better param names!). With contracts: fun date(y:i32, m:i32, d:i32)
assert
y in 0..9999
m in 1..12
d in 1..31
{... code ...}
But I need to see it in the docs, in the tooltips, etc. Now are useful! |
|