Declare a local variable using primitive blocks

Do you have any concrete ideas for the libraries? I could probably help implement some of them.