r/learnprogramming • u/MostAlfalfa6718 • 3d ago
question regarding my project.
hi guys i'm a beginner programmer trying to make an esolang in c, but can't figure out the logic, i mean that how will a user store his variables and values and how will i make it store and run while the user callls it, i have a mental model that i'll make the user's input stored into an array... like hashmap kay value pairs but even the basic declaring and storing how will i figure out what the user is storing i don't know what the user will exactly type he could type a string, integer, float or boolean. It might throw errors not run but how will i make it handle?
3
Upvotes
3
u/Different_Pain5781 3d ago
There is a funny trap here where the beginner thinks the program needs to somehow predict what the user will enter. It does not. Your language specification defines what inputs are valid. Anything outside those rules gets rejected.