You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My concerns regarding the random statements are as follows:
Use of the object keyword
The term "object" is used extensively in the following statements:
When I create random object of '' bits
When I create random object of '' bytes
When I create array of '' random objects
When I create array of '' random objects of '' bits
When I create array of '' random objects of '' bytes
When I pick random object in ''When I create random dictionary with '' random objects from ''
However, "object" usually implies a richer structure, whereas these statements seem to refer to simpler data types like sequences of bits or bytes. This makes the term "object" potentially misleading.
Use of in instead of from in When I pick random object in ''
The preposition in is less intuitive here. Using from would better indicate the source of the random selection.
Additionally, the pick keyword creates a random_object inside the Zenroom memory. It might be more logical to align this behavior with create to maintain consistency.
Ambiguity in When I create random dictionary with '' random objects from ''
This statement can also create an array when picking random elements from an array, which introduces ambiguity.
Proposed changes
Refactoring the first statements to eliminate "object" in favor of more precise terms or a simplified structure:
When I create random '' bits long
When I create random '' bytes long
When I create array of '' random
When I create array of '' random '' bits long
When I create array of '' random '' bytes long
This aligns with the base statement:
When I create random ''
Open question
For the last two statements I am not able to find a correct way to rewrite them because I thought about
When I pickup randomly one element from '' # change 'in' to 'from' and 'pick' to 'pickup' (to follow also `when I pickup from path`)
When I pickup randomly '' elements from '' # total refactor
but where does the random element(s) will be stored?
The text was updated successfully, but these errors were encountered:
My concerns regarding the random statements are as follows:
object
keywordThe term "object" is used extensively in the following statements:
in
instead offrom
inWhen I pick random object in ''
When I create random dictionary with '' random objects from ''
This statement can also create an array when picking random elements from an array, which introduces ambiguity.
Proposed changes
Refactoring the first statements to eliminate "object" in favor of more precise terms or a simplified structure:
This aligns with the base statement:
Open question
For the last two statements I am not able to find a correct way to rewrite them because I thought about
but where does the random element(s) will be stored?
The text was updated successfully, but these errors were encountered: