namespace AlternativeGatekeeper { declare function secondsSinceLastComment ( userId ) ; declare function postComment ( comment , userId ) ; function commentGatekeeper ( comment , userId ) { if ( ( comment == "" ) || ( secondsSinceLastComment ( userId ) < 10 ) ) return false ; postComment ( comment , userId ) ; return true ; } }