AlacrisIO / meta

Internal management of Legicash/Legilogic/Alacris
0 stars 0 forks source link

Rename interact to input #119

Open fare opened 5 years ago

fare commented 5 years ago

I suggest that interact be renamed input, in honor of the BASIC primitive of the same name:

10 INPUT "PLEASE ENTER YOUR HAND:", H$

becomes

const hand = input("Please enter your hand", isHand): uint;

BASIC was the first programming language of many people (including myself), and the simplicity of INPUT was its one nice feature.

The name input will probably bring back the correct mental associations to users more so than interact. We can use all the familiarity we can get to achieve popularity.

fare commented 5 years ago

Our current rps.ala uses interact in the consensual part of the code. I believe that's confusing, since the function in that context can pretty much only return a unit, and provides no actual input. Maybe we should have well-separated BASIC-like PRINT and INPUT statements, where INPUT is only available in a private @A context, not in a consensual context.