Snake case - with capitals?

While reading about snake_case on Wikipedia, I saw this statement:
the first letter of each word is written in lowercase. Just the first letter?

So I commented on this in the talk section.

The article states "the first letter of each word is written in lowercase." Are not all letters in snake_case lower case? If so ... — Preceding unsigned comment added by MichaelRpdx (talk • contribs) 16:23, 22 February 2023 (UTC)

    I suspect it means "at least the first letter" because if it said "all letters", that would require additional evidence. Even as it is, I doubt its accuracy: put_HTML_code_here looks valid to me. So I reverse your question and ask "where is the evidence that 'the first letter of each word is written in lowercase'"? In Python, yes it is but can it be said to be generally true? 

A test of this idea lead to:

warning: function `buffalo_CASE` should have a snake case name
  --> src/
20 | fn    buffalo_CASE() {
   |       ^^^^^^^^^^^^ help: convert the identifier to snake case: `buffalo_case`
   = note: `#[warn(non_snake_case)]` on by default

Is there a reference on the web that I can cite on Wikipedia?

Usually, it is implied that non-leading letters are lowercase. There's no naming convention that would call for cAPITALIZING aLL bUT tHE fIRST lETTER oF eVERY wORD.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.