[Racket] Variable variable names? via /r/learnprogramming


[Racket] Variable variable names?

Can an expression be used in place of a variable name in a define statement?

For example,

(define (current-milliseconds) "Hello") 

Would define a variable with the name of the current time in milliseconds.

Submitted July 15, 2017 at 01:28AM by dmux
via reddit http://ift.tt/2vnuGzm

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s