Skip to content

Syntactic ambiguity may need to be resolved #1

Description

@jarble

In this sample code, I noticed that function parameters were not clearly distinguished from other parts of functions, causing some confusion:

To check if person is online on Skype:
    Skype.checkStatus(person) //Is 'Skype' a parameter of this function?
    if result is "online": return yes
    else return no
End

This code would be easier to read if the parameters were explicitly specified, like this:

To check if 'person' is online on Skype:
    Skype.checkStatus(person)
    if result is "online": return yes 
    else return no
End

This describes the program's intention much more clearly, ensuring that no parameters are created accidentally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions