@@ -244,15 +244,24 @@ impl Environment {
244244 environment. insert ( Symbol :: intern ( "defmacro" ) , defmacro_macro. to_rc_value ( ) ) ;
245245 environment. insert ( Symbol :: intern ( "eval" ) , eval_fn. to_rc_value ( ) ) ;
246246
247- // Thread namespace TODO / instead of _
248- environment. insert (
249- Symbol :: intern ( "Thread_sleep" ) ,
250- thread_sleep_fn. to_rc_value ( ) ,
251- ) ;
252-
253- environment. insert ( Symbol :: intern ( "System_nanoTime" ) , nanotime_fn. to_rc_value ( ) ) ;
254-
255- environment. insert ( Symbol :: intern ( "System_getenv" ) , get_env_fn. to_rc_value ( ) ) ;
247+ // Thread namespace
248+ environment. insert_into_namespace (
249+ & Symbol :: intern ( "Thread" ) ,
250+ Symbol :: intern ( "sleep" ) ,
251+ thread_sleep_fn. to_rc_value ( )
252+ ) ;
253+
254+ // System namespace
255+ environment. insert_into_namespace (
256+ & Symbol :: intern ( "System" ) ,
257+ Symbol :: intern ( "nanoTime" ) ,
258+ nanotime_fn. to_rc_value ( )
259+ ) ;
260+ environment. insert_into_namespace (
261+ & Symbol :: intern ( "System" ) ,
262+ Symbol :: intern ( "getenv" ) ,
263+ get_env_fn. to_rc_value ( )
264+ ) ;
256265
257266 // core.clj wraps calls to the rust implementations
258267 // @TODO add this to clojure.rs.core namespace as clojure.rs.core/slurp
0 commit comments