Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Underscores are silly! We only use them in code to separate words in tokens because the default natural word separator, whitespace, is already used to distinguish tokens.

At my old job, we had DSL that allowed and encouraged very descriptive variable and procedure names with space in them. To implement this unambiguously the language had to exclude all the operator characters from variable names and procedure calls with a sigil. A line of code may have appeared like this:

line slope estimate = @some function( x - step size ) / ( x - step size);

Feels a bit strange at first but quickly becomes natural, especially when dealing with wordy domains (math was a bad example).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: